create


Description:

public static async Item create (Collection collection, Schema? schema, HashTable<string,string> attributes, string label, Value value, ItemCreateFlags flags, Cancellable? cancellable) throws Error

Create a new item in the secret service.

If the flags contains 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. [method 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

user_data

data to pass to the callback




2022 vala-language.org