Secret.Item.prototype.set_attributes

function set_attributes(schema: Secret.Schema, attributes: {String: String}, cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void {
    // Gjs wrapper for secret_item_set_attributes()
}
  

Set the attributes of this item.

The attributes are a mapping of string keys to string values. Attributes are used to search for items. Attributes are not stored or transferred securely by the secret service.

This function returns immediately and completes asynchronously.

schema

the schema for the attributes

attributes

a new set of attributes

cancellable

optional cancellation object

callback

called when the asynchronous operation completes