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 Anchor

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

open suspend Unit

Updates the state of the Updatable.

Public properties

open StateFlow<Plane.State>

The current state of the Plane.

Plane.Type

The Type of the Plane.

Public companion functions

subscribe

Added in 1.0.0-alpha01
fun subscribe(session: Session): StateFlow<Collection<Plane>>

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

Public functions

createAnchor

Added in 1.0.0-alpha01
open fun createAnchor(pose: Pose): Anchor

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

update

Added in 1.0.0-alpha01
open suspend fun update(): Unit

Updates the state of the Updatable.

Public properties

state

Added in 1.0.0-alpha01
open val stateStateFlow<Plane.State>

The current state of the Plane.

type

Added in 1.0.0-alpha01
val typePlane.Type

The Type of the Plane.