class Plane : Trackable


Describes the system's current best knowledge of a real-world planar surface.

Summary

Nested types

A semantic description of a Plane.

The representation of the current state of a Plane.

A simple summary of the normal vector of a Plane.

Public companion functions

StateFlow<Collection<Plane>>
subscribe(session: Session)

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

Public functions

open AnchorCreateResult

Creates an Anchor that is attached to this trackable, using the given initial pose in the world coordinate space.

Public properties

open StateFlow<Plane.State>

The current state of the Plane.

Plane.Type

The Type of the Plane.

Extension properties

Flowable<Plane.State>

The current state of the Plane.

Public companion functions

subscribe

Added in 1.0.0-alpha05
fun subscribe(session: Session): StateFlow<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.

Public functions

createAnchor

open fun createAnchor(pose: Pose): AnchorCreateResult

Creates an Anchor that is attached to this trackable, using the given initial pose in the world coordinate space.

Public properties

state

open val stateStateFlow<Plane.State>

The current state of the Plane.

type

Added in 1.0.0-alpha05
val typePlane.Type

The Type of the Plane.

Extension properties

val Plane.stateAsFlowableFlowable<Plane.State>

The current state of the Plane.