set_default


Description:

[ Version ( since = "0.15.5" ) ]
public void set_default ()

Define the AccountManager singleton that will be returned by dup.

This function may only be called before the first call to dup, and may not be called more than once. Applications which use a custom SimpleClientFactory and want the default AccountManager to use that factory should call this after calling AccountManager.with_factory.

Unlike dup, this function will keep an internal reference to this, so it will never be destroyed.

Note that this must use the default DBusDaemon as returned by dup

Parameters:

this

a AccountManager