handle_with_time_async


Description:

[ Version ( since = "0.11.7" ) ]
public async bool handle_with_time_async (string? handler, int64 user_action_time) throws Error

A variant of handle_with_async allowing the approver to pass an user action time.

This timestamp will be passed to the Handler when HandleChannels is called.

If an X server timestamp for the user action causing this method call is available, user_action_time should be this timestamp (for instance, the result of gdk_event_get_time if it is not GDK_CURRENT_TIME). Otherwise, it may be USER_ACTION_TIME_NOT_USER_ACTION to behave as if there was no user action or it happened a long time ago, or TP_USER_ACTION_TIME_CURRENT_TIME to have the Handler behave as though the user action had just happened (resembling, but not numerically equal to, GDK_CURRENT_TIME).

This method has been introduced in telepathy-mission-control 5.5.0.

Parameters:

this

a ChannelDispatchOperation

handler

The well-known bus name (starting with CLIENT_BUS_NAME_BASE) of the channel handler that should handle the channel, or null if the client has no preferred channel handler

user_action_time

the time at which user action occurred, or one of the special values USER_ACTION_TIME_NOT_USER_ACTION or TP_USER_ACTION_TIME_CURRENT_TIME

callback

a callback to call when the call returns

user_data

data to pass to callback