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<Geospatial.State>

The current State of Geospatial.

Flowable<Hand.State>

The current State of this hand.

Flowable<Plane.State>

The current state of the Plane.

Flowable<RenderViewpoint.State>

The current State of the Render Viewpoint.

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
IllegalStateException

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

Extension properties

stateAsFlowable

val Anchor.stateAsFlowableFlowable<Anchor.State>

The current State of this anchor.

stateAsFlowable

val ArDevice.stateAsFlowableFlowable<ArDevice.State>

The current State of the AR Device tracking.

stateAsFlowable

val Hand.stateAsFlowableFlowable<Hand.State>

The current State of this hand.

stateAsFlowable

val Plane.stateAsFlowableFlowable<Plane.State>

The current state of the Plane.

stateAsFlowable

val RenderViewpoint.stateAsFlowableFlowable<RenderViewpoint.State>

The current State of the Render Viewpoint.