Secret.Service.prototype.lock
function lock(objects: Array(Gio.DBusProxy), cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for secret_service_lock() }
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 will be called to get the default Secret.Service proxy.
This method returns immediately and completes asynchronously. 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
- callback
called when the operation completes