Skip to main content
API Reference NSDK

DefaultSessionDataSource

↳ inherits from ObjectiveC.NSObject
Default iOS implementation of NSDKSessionDataSource backed by...

Declaration

final class DefaultSessionDataSource

Summary

Default iOS implementation of NSDKSessionDataSource backed by ARSession and CLLocationManager.


Constructors

init(session: ARSession, orientationReporter: UIOrientationReporter)

Summary

Creates a data source that reads camera frames from the provided AR session.
The AR session is not owned by this object and must be configured and run
by the caller.


Properties

NameTypeSummary
var isReadyBool
Indicates whether the data source is currently able to provide
meaningful sensor data.

Methods

NameTypeSummary
latestCameraSample(image: CVPixelBuffer, intrinsics: NSDKCameraIntrinsics, pose: NSDKCameraExtrinsics, orientation: NSDKScreenOrientation, timestamp: UInt64)?
Returns the most recent camera sample, if available.
- Returns: A tuple containing:
- image: A retained CVPixelBuffer representing the captured image.
- intrinsics: Camera intrinsic parameters for the image.
- pose: The pose (extrinsics) of the camera associated with the image.
- orientation: The device orientation of the camera associated with the image.
- timestamp: Camera timestamp in milliseconds.
latestCompassSampleNSDKFrameData.CompassData?
Returns the most recent compass (heading) sample, if available.
latestDepthMapSample(image: CVPixelBuffer, confidence: CVPixelBuffer?, intrinsics: NSDKCameraIntrinsics, pose: NSDKCameraExtrinsics, orientation: NSDKScreenOrientation, timestamp: UInt64)?
Returns the most recent platform depth sample, if available.
- Returns: A tuple containing:
- image: A retained CVPixelBuffer representing the captured image.
- confidence: A pixel buffer containing the confidence level for each depth value in the image.
- intrinsics: Camera intrinsic parameters for the image.
- pose: The pose (extrinsics) of the camera associated with the image.
- orientation: The device orientation of the camera associated with the image.
- timestamp: Camera timestamp in milliseconds.
latestGpsSampleNSDKFrameData.GpsData?
Returns the most recent GPS sample, if available.
latestTrackingStateSampleNsdkTrackingState
Returns the most recent VIO tracking state report
locationManagervoid
-
locationManagerDidChangeAuthorizationvoid
-

Relationships

conforms to: Swift.Hashable
conforms to: Swift.CustomStringConvertible
conforms to: Swift.Equatable
conforms to: Swift.CVarArg
conforms to: Swift.Copyable
conforms to: Swift.CustomDebugStringConvertible

conforms to: CoreLocation.CLLocationManagerDelegate

conforms to: NSDKSessionDataSource

conforms to: ObjectiveC.NSObjectProtocol