Secret.Service.prototype.get_collections

function get_collections(): Array(Secret.Collection) {
    // Gjs wrapper for secret_service_get_collections()
}
  

Get a list of Secret.Collection objects representing all the collections in the secret service.

If the Secret.ServiceFlags.load_collections flag was not specified when initializing Secret.Service proxy object, then this method will return null. Use Secret.Service.prototype.load_collections to load the collections.

Returns

a list of the collections in the secret service