dup


Description:

[ Version ( since = "0.9.0" ) ]
public static AccountManager dup ()

Returns an account manager proxy on the D-Bus daemon on which this process was activated (if it was launched by D-Bus service activation), or the session bus (otherwise).

This account manager will always have the result of dup as its dbus_daemon.

The returned AccountManager is cached; the same AccountManager object will be returned by this function repeatedly, as long as at least one reference exists. Note that the returned AccountManager is not guaranteed to be ready on return.

If set_default has been called successfully, that AccountManager will be returned. Otherwise, a new AccountManager will be created the first time this function is called, using a new AutomaticClientFactory as its factory.

Returns:

an account manager proxy on the starter or session bus, or null if it wasn't possible to get a dbus daemon proxy for the appropriate bus