Eye.State


public final class Eye.State implements Trackable.State


The representation of the current state of an Eye.

The Poses provided are the position and rotation of the eye itself, relative to the head pose.

Summary

Public methods

boolean
equals(Object other)
final @NonNull Eye

self-reference to the object that owns this state

final @NonNull Pose

the Pose of the eye

@NonNull TrackingState

the androidx.xr.arcore.TrackingState of the eye

int
final boolean

a flag indicating whether the eye is open

@NonNull String

Returns a string representation of Eye.State for debugging.

Public methods

equals

public boolean equals(Object other)

getOwner

Added in 1.0.0-beta02
public final @NonNull Eye getOwner()

self-reference to the object that owns this state

getPose

Added in 1.0.0-beta02
public final @NonNull Pose getPose()

the Pose of the eye

getTrackingState

public @NonNull TrackingState getTrackingState()

the androidx.xr.arcore.TrackingState of the eye

hashCode

public int hashCode()

isOpen

Added in 1.0.0-beta02
public final boolean isOpen()

a flag indicating whether the eye is open

toString

public @NonNull String toString()

Returns a string representation of Eye.State for debugging.

Note: Not intended for production use.