public final class Eye


A representation of a user's eye.

An Eye instance provides the state of the eye (shut or gazing), as well as a Pose indicating where the user is currently looking.

Summary

Nested types

public final class Eye.State

The representation of the current state of an Eye.

Public methods

final @NonNull StateFlow<@NonNull Eye.State>

A StateFlow that contains the latest State of an Eye.

static final Eye
left(@NonNull Session session)

Returns the left eye, if available.

static final Eye
right(@NonNull Session session)

Returns the right eye, if available.

Public methods

getState

Added in 1.0.0-alpha08
public final @NonNull StateFlow<@NonNull Eye.StategetState()

A StateFlow that contains the latest State of an Eye.

left

Added in 1.0.0-alpha08
public static final Eye left(@NonNull Session session)

Returns the left eye, if available.

right

Added in 1.0.0-alpha08
public static final Eye right(@NonNull Session session)

Returns the right eye, if available.