Service.setAliasSync

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.

class Service
bool
setAliasSync

Parameters

alias_ string

the alias to assign the collection to

collection secret.collection.Collection

the collection to assign to the alias

cancellable gio.cancellable.Cancellable

optional cancellation object

Return Value

Type: bool

true if successful