Service.setAliasSync

bool setAliasSync(string alias_, secret.collection.Collection collection = null, gio.cancellable.Cancellable cancellable = null)

Assign a collection to this alias. Aliases help determine well known collections, such as 'default'.

If service is null, then [secret.service.Service.getSync] will be called to get the default classService proxy.

This method may block and should not be used in user interface threads.

Parameters

alias_the alias to assign the collection to
collectionthe collection to assign to the alias
cancellableoptional cancellation object

Returns

true if successful

Throws

[ErrorWrap]