Skip to main content
←API Reference ←com.nianticspatial.nsdk

NsdkCamera


Declaration​

sealed class NsdkCamera

Summary​

Camera view over the current frame (live or playback). Mirrors ARCore [com.google.ar.core.Camera] so callers can use one API for both live and playback. Use [pose] and [getDisplayOrientedPose] for overlays, VPS2, etc. Use [imageIntrinsics] for CPU image coordinates, [trackingState] / [getTrackingFailureReason] for tracking status, and [getViewMatrix] for rendering. Use [backing] when you need ARCamera- or PlaybackCamera-specific APIs.


Properties​

NameTypeSummary
abstract backingBacking
The underlying camera (live or playback). Switch on this for type-specific APIs.
abstract imageIntrinsicsCameraIntrinsics
Unrotated camera intrinsics for the CPU image. Matches ARCore [com.google.ar.core.Camera.getImageIntrinsics].
abstract posePose
Physical camera pose in world space. Matches ARCore [com.google.ar.core.Camera.getPose].
abstract trackingStateTrackingState
Current motion tracking state. Matches ARCore [com.google.ar.core.Camera.getTrackingState].

Functions​

NameTypeSummary
abstract getDisplayOrientedPosePose
Display-oriented camera pose for overlays and UI. Matches ARCore [com.google.ar.core.Camera.getDisplayOrientedPose].
abstract getTrackingFailureReasonTrackingFailureReason
Reason tracking is paused, or [TrackingFailureReason.NONE] when tracking. Matches ARCore [com.google.ar.core.Camera.getTrackingFailureReason].
abstract getViewMatrixFloatArray
View matrix (column-major, 16 floats) for this frame. Matches ARCore [com.google.ar.core.Camera.getViewMatrix].