Item.create
void create(secret.collection.Collection collection, secret.schema.Schema schema, string[string] attributes, string label, secret.value.Value value, secret.types.ItemCreateFlags flags, gio.cancellable.Cancellable cancellable = null, gio.types.AsyncReadyCallback callback = null)Create a new item in the secret service.
If the flags contains [secret.types.ItemCreateFlags.Replace], then the secret service will search for an item matching the attributes, and update that item instead of creating a new one.
This method may block indefinitely and should not be used in user interface threads. The secret service may prompt the user. [secret.service.Service.prompt] will be used to handle any prompts that are required.
Parameters
collection | a secret collection to create this item in |
schema | the schema for the attributes |
attributes | attributes for the new item |
label | label for the new item |
value | secret value for the new item |
flags | flags for the creation of the new item |
cancellable | optional cancellation object |
callback | called when the operation completes |