Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type State ¶
type State struct {
IsSystemSleep bool //this state variable captures whether the system is sleeping or not
}
State captures the current state of the tracker, and the whole system in general.
It is passed to the handlers when performing the Trigger, so that the handlers can take an informed decision on whether to get activated or not at that instance.
For example: The mouseCursorHandler does not need to do anything if the state of the system is in sleep state.
It can serve as a way of inter-handler communication
Click to show internal directories.
Click to hide internal directories.