Skip to main content
API Reference com.nianticspatial.nsdk

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 NsdkFrame

Properties

NameTypeSummary
abstract backingBacking
The underlying frame (live or playback). Switch on this for type-specific APIs.
abstract cameraNsdkCamera
-
abstract timestampLong
Timestamp in nanoseconds when this frame was captured. Matches ARCore [Frame.getTimestamp].

Functions

NameTypeSummary
abstract getUpdatedAnchorsCollection<Anchor>
Anchors updated this frame (live only; playback returns empty). Matches ARCore [Frame.getUpdatedAnchors].
abstract hasDisplayGeometryChangedBoolean
True if display rotation or viewport changed since the previous frame. Matches ARCore [Frame.hasDisplayGeometryChanged]. Playback always returns false.