NsdkFrame
Abstraction over the current frame so callers can use one API for both live AR (ARCore [Frame]) and playback ([PlaybackFrame]). Use [camera] for pose, intrinsics, and tracking. Use [backing] when you need Frame- or PlaybackFrame-specific APIs (e.g. acquireCameraImage).
Declaration
sealed class NsdkFrameProperties
| Name | Type | Summary |
|---|---|---|
| abstract backing | Backing | The underlying frame (live or playback). Switch on this for type-specific APIs. |
| abstract camera | NsdkCamera | - |
| abstract timestamp | Long | Timestamp in nanoseconds when this frame was captured. Matches ARCore [Frame.getTimestamp]. |
Functions
| Name | Type | Summary |
|---|---|---|
| abstract getUpdatedAnchors | Collection<Anchor> | Anchors updated this frame (live only; playback returns empty). Matches ARCore [Frame.getUpdatedAnchors]. |
| abstract hasDisplayGeometryChanged | Boolean | True if display rotation or viewport changed since the previous frame. Matches ARCore [Frame.hasDisplayGeometryChanged]. Playback always returns false. |