Secret.Service.prototype.lock_sync

function lock_sync(objects: Array(Gio.DBusProxy), cancellable: Gio.Cancellable): [return_value: Number(gint), locked: Array(Gio.DBusProxy)] {
    // Gjs wrapper for secret_service_lock_sync()
}
  

Lock items or collections in the secret service.

The secret service may not be able to lock items individually, and may lock an entire collection instead.

If service is NULL, then Secret.Service.get_sync will be called to get the default Secret.Service proxy.

This method may block indefinitely and should not be used in user interface threads. The secret service may prompt the user. Secret.Service.prototype.prompt will be used to handle any prompts that show up.

objects

the items or collections to lock

cancellable

optional cancellation object

return_value

the number of items or collections that were locked

locked

location to place list of items or collections that were locked