JxrPlatformAdapter.Component


public interface JxrPlatformAdapter.Component

Known direct subclasses
JxrPlatformAdapter.InteractableComponent

Component to enable input interactions.

JxrPlatformAdapter.MovableComponent

Component to enable a high level user movement affordance.

JxrPlatformAdapter.PointerCaptureComponent

Component to enable pointer capture.

JxrPlatformAdapter.ResizableComponent

Component to enable resize semantics.


Base interface for all components.

Summary

Public methods

abstract boolean

Lifecycle event, called when component is attached to an Entity.

abstract void

Lifecycle event, called when component is detached from an Entity.

Public methods

onAttach

Added in 1.0.0-alpha01
abstract boolean onAttach(@NonNull JxrPlatformAdapter.Entity entity)

Lifecycle event, called when component is attached to an Entity.

Parameters
@NonNull JxrPlatformAdapter.Entity entity

Entity the component is attached to.

Returns
boolean

True if the component can attach to the given entity.

onDetach

Added in 1.0.0-alpha01
abstract void onDetach(@NonNull JxrPlatformAdapter.Entity entity)

Lifecycle event, called when component is detached from an Entity.

Parameters
@NonNull JxrPlatformAdapter.Entity entity

Entity the component detached from.