InteractableComponentTester


class InteractableComponentTester


A test-only accessor for InteractableComponent that enables direct manipulation and inspection of its internal state.

Summary

Public functions

open operator Boolean
equals(other: Any?)
open Int
Unit

Simulates an input event from the runtime, notifying the listener registered via InteractableComponent.create.

Public functions

equals

open operator fun equals(other: Any?): Boolean

hashCode

open fun hashCode(): Int

triggerOnInputEvent

Added in 1.0.0-alpha16
fun triggerOnInputEvent(inputEvent: InputEvent): Unit

Simulates an input event from the runtime, notifying the listener registered via InteractableComponent.create.

Parameters
inputEvent: InputEvent

The InputEvent to be triggered.