androidx.xr.arcore.rxjava3


Top-level functions summary

Flowable<Collection<Plane>>

Emits the planes that are currently being tracked in the session.

Extension properties summary

Flowable<Anchor.State>

The current State of this anchor.

Flowable<ArDevice.State>

The current State of the AR Device tracking.

Flowable<Earth.State>

The current State of the Earth.

Flowable<Hand.State>

The current State of this hand.

Flowable<Plane.State>

The current state of the Plane.

Flowable<ViewCamera.State>

The current State of the view camera.

Top-level functions

subscribeAsFlowable

fun subscribeAsFlowable(session: Session): Flowable<Collection<Plane>>

Emits the planes that are currently being tracked in the session.

Only Planes that are TrackingState.TRACKING will be emitted in the Collection. Instances of the same Plane will remain between subsequent emits to the StateFlow as long as they remain tracking.

Parameters
session: Session

The active ARCore Session from which to track plane updates.

Returns
Flowable<Collection<Plane>>

a Flowable>. That emits collections of Plane objects representing currently tracked planes.

Throws
kotlin.IllegalStateException

if Session.config is set to Config.PlaneTrackingMode.DISABLED

Extension properties

val Anchor.stateAsFlowableFlowable<Anchor.State>

The current State of this anchor.

val ArDevice.stateAsFlowableFlowable<ArDevice.State>

The current State of the AR Device tracking.

val Earth.stateAsFlowableFlowable<Earth.State>

The current State of the Earth.

val Hand.stateAsFlowableFlowable<Hand.State>

The current State of this hand.

val Plane.stateAsFlowableFlowable<Plane.State>

The current state of the Plane.

val ViewCamera.stateAsFlowableFlowable<ViewCamera.State>

The current State of the view camera.