AugmentedImage
class AugmentedImage : Trackable
Describes the system's current best knowledge of a real-world image
Summary
Nested types |
|---|
class AugmentedImage.State : Trackable.StateThe representation of the current state of an |
Public companion functions |
|
|---|---|
StateFlow<Collection<AugmentedImage>> |
Emits tracked augmented images in the |
Public functions |
|
|---|---|
open String |
toString()Returns a string representation of |
Public properties |
|
|---|---|
open StateFlow<AugmentedImage.State> |
The current state of the |
Public companion functions
subscribe
fun subscribe(session: Session): StateFlow<Collection<AugmentedImage>>
Emits tracked augmented images in the session.
Only instances of AugmentedImage that are androidx.xr.arcore.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.
| Returns | |
|---|---|
StateFlow<Collection<AugmentedImage>> |
a |
| Throws | |
|---|---|
IllegalStateException |
if the |
Public functions
toString
open fun toString(): String
Returns a string representation of AugmentedImage for debugging.
Note: Not intended for production use.