API reference
API reference
Select your platform
No SDKs available
No versions available

ISelector Interface

Defines an input abstraction that can broadcast select events and release events.
Implementing types can be used to create and provide new mechanisms of selection, either by implementing this type directly in a custom type or by implementing IActiveState and routing logic through an ActiveStateSelector, for example.

Events

Invoked to represent selection.
This event should be invoked when the input state is observed to represent the user's intent to select, the conditions for which vary by selection mechanism; for example, IndexPinchSelector invokes this event when the user's index finger and thumb are observed to go from "not pinching" to "pinching." Contractually, there must be a 1:1 relationship between WhenSelected and WhenUnselected invocations, with one of the latter always following one of the former.
Invoked to represent unselection.
This event should be invoked when the input state is observed to represent the user's intent to stop selecting, the conditions for which vary by selection mechanism; for example, IndexPinchSelector invokes this event when the user's index finger and thumb are observed to go from "pinching" to "not pinching." Contractually, there must be a 1:1 relationship between WhenSelected and WhenUnselected invocations, with one of the latter always following one of the former.
Did you find this page helpful?
Thumbs up icon
Thumbs down icon