add_user_active_watch


Description:

public uint add_user_active_watch (owned IdleMonitorWatchFunc? callback)

Parameters:

this

A IdleMonitor

callback

The callback to call when the user is active again.

notify

A DestroyNotify

user_data

The user data to pass to the callback

Returns:

a watch id

Add a one-time watch to know when the user is active again. Note that this watch is one-time and will de-activate after the function is called, for efficiency purposes. It's most convenient to call this when an idle watch, as added by add_idle_watch, has triggered.