Secret.Service.prototype.load_collections
function load_collections(cancellable: Gio.Cancellable, callback: Gio.AsyncReadyCallback): void { // Gjs wrapper for secret_service_load_collections() }
Ensure that the Secret.Service proxy has loaded all the collections present in the Secret Service. This affects the result of Secret.Service.prototype.get_collections.
You can also pass the Secret.ServiceFlags.load_collections to Secret.Service.get_sync in order to ensure that the collections have been loaded by the time you get the Secret.Service proxy.
This method will return immediately and complete asynchronously.
- cancellable
optional cancellation object
- callback
called when the operation completes