SimpleObserver.with_am
Description:
[ CCode ( has_construct_function = false , type = "TpBaseClient*" ) ]
[ Version ( since = "0.11.14" ) ]
public SimpleObserver.with_am (AccountManager account_manager, bool recover, string name, bool uniquify, owned SimpleObserverObserveChannelsImpl callback)
[ Version ( since = "0.11.14" ) ]
public SimpleObserver.with_am (AccountManager account_manager, bool recover, string name, bool uniquify, owned SimpleObserverObserveChannelsImpl callback)
Convenient function to create a new SimpleObserver instance with a specified AccountManager.
It is not necessary to prepare any features on account_manager
before calling this function.
Parameters:
account_manager |
an account manager, which may not be |
recover |
the value of the Observer.Recover D-Bus property |
name |
the name of the Observer (see name: for details) |
uniquify |
the value of the uniquify_name: property |
callback |
the function called when ObserveChannels is called |
destroy |
called with the user_data as argument, when the SimpleObserver is destroyed |
user_data |
arbitrary user-supplied data passed to |
Returns:
a new SimpleObserver |