AugmentedImage


class AugmentedImage : Trackable


Describes the system's current best knowledge of a real-world image

Summary

Nested types

The representation of the current state of an AugmentedImage.

Public companion functions

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

Emits the augmented images that are currently being tracked in the session

Public properties

open StateFlow<AugmentedImage.State>

The current state of the AugmentedImage

Public companion functions

subscribe

Added in 1.0.0-alpha14
fun subscribe(session: Session): StateFlow<Collection<AugmentedImage>>

Emits the augmented images that are currently being tracked in the session

Only instances of AugmentedImage that are androidx.xr.runtime.TrackingState.TRACKING will be emitted in the Collection. Instances of the same AugmentedImage will remain between subsequent emits to the StateFlow as long as they remain tracking

Parameters
session: Session

the Session to subscribe to

Returns
StateFlow<Collection<AugmentedImage>>

a StateFlow that emits a collection of AugmentedImages

Public properties

state

open val stateStateFlow<AugmentedImage.State>

The current state of the AugmentedImage