InteractableComponentTester


public final class InteractableComponentTester


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

Summary

Public methods

boolean
equals(Object other)
int
final void

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

Public methods

equals

public boolean equals(Object other)

hashCode

public int hashCode()

triggerOnInputEvent

Added in 1.0.0-alpha16
public final void triggerOnInputEvent(@NonNull InputEvent inputEvent)

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

Parameters
@NonNull InputEvent inputEvent

The InputEvent to be triggered.