SimpleHandler.with_factory
Description:
[ CCode ( has_construct_function = false , type = "TpBaseClient*" ) ]
[ Version ( since = "0.15.5" ) ]
public SimpleHandler.with_factory (SimpleClientFactory factory, bool bypass_approval, bool requests, string name, bool uniquify, owned SimpleHandlerHandleChannelsImpl callback)
[ Version ( since = "0.15.5" ) ]
public SimpleHandler.with_factory (SimpleClientFactory factory, bool bypass_approval, bool requests, string name, bool uniquify, owned SimpleHandlerHandleChannelsImpl callback)
Convenient function to create a new SimpleHandler instance with a specified SimpleClientFactory.
Parameters:
| factory |
a SimpleClientFactory, which may not be |
| bypass_approval |
the value of the Handler.BypassApproval D-Bus property (see set_handler_bypass_approval for details) |
| requests |
whether this handler should implement Requests (see set_handler_request_notification for details) |
| name |
the name of the Handler (see name for details) |
| uniquify |
the value of the uniquify_name property |
| callback |
the function called when HandleChannels is called |
| destroy |
called with |
| user_data |
arbitrary user-supplied data passed to |
Returns:
|
a new SimpleHandler |