Skip to main content
Represents the context of a listener perform action

Methods

isPointerEvent

isPointerEvent() -> boolean
returns true if the perform action was invoked through a pointer event

isKeyboardEvent

isKeyboardEvent() -> boolean
returns true if the perform action was invoked through a keyboard event

isTextInput

isTextInput() -> boolean
returns true if the perform action was invoked through a text input

isFocus

isFocus() -> boolean
returns true if the perform action was invoked through a focus change

isReportedEvent

isReportedEvent() -> boolean
returns true if the perform action was invoked through a Rive event

isViewModelChange

isViewModelChange() -> boolean
returns true if the perform action was invoked through a view model change

isNone

isNone() -> boolean
returns true if the perform action is none of the known types

asPointerEvent

asPointerEvent() -> PointerEvent?
returns a pointer event if context is of type pointer event, null otherwise

asKeyboardEvent

asKeyboardEvent() -> KeyboardEvent?
returns a keyboard event if context is of type keyboard event, null otherwise

asTextInput

asTextInput() -> TextInput?
returns a text input event if context is of type text input event, null otherwise

asFocus

asFocus() -> FocusEvent?
returns a focus event event if context is of type focus event, null otherwise

asReportedEvent

asReportedEvent() -> ReportedEvent?
returns a reported event if context is of type reported evnet, null otherwise

asViewModelChange

asViewModelChange() -> ViewModelChange?
returns a view model change if context is of type view model, null otherwise

asNone

asNone() -> NoneEvent?
returns a noop event if context is of type none, null otherwise