RxJava3Plane

Added in 1.0.0-alpha05

public final class RxJava3Plane


Summary

Public methods

static final @NonNull Flowable<@NonNull Plane.State>

The current state of the Plane.

static final @NonNull Flowable<@NonNull Collection<@NonNull Plane>>

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

Public methods

getStateAsFlowable

public static final @NonNull Flowable<@NonNull Plane.StategetStateAsFlowable(@NonNull Plane receiver)

The current state of the Plane.

subscribeAsFlowable

public static final @NonNull Flowable<@NonNull Collection<@NonNull Plane>> subscribeAsFlowable(@NonNull Session session)

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
@NonNull Session session

The active ARCore Session from which to track plane updates.

Returns
@NonNull Flowable<@NonNull Collection<@NonNull 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