isLidarAvailable
Declaration
static func isLidarAvailable() -> Bool
Summary
Returns
true if LiDAR is available and supported, false otherwise
Example
if ARUtils.isLidarAvailable() {
print("LiDAR is available - enhanced depth sensing enabled")
// Configure NSDK to use LiDAR data
let session = NSDKSession(accessToken: "your-token", useLidar: true)
} else {
print("LiDAR not available - using alternative depth methods")
let session = NSDKSession(accessToken: "your-token", useLidar: false)
}
Device Support
LiDAR is available on:
- iPad Pro (4th generation and later)
- iPhone 12 Pro and iPhone 12 Pro Max
- iPhone 13 Pro and iPhone 13 Pro Max
- iPhone 14 Pro and iPhone 14 Pro Max
- iPhone 15 Pro and iPhone 15 Pro Max
Checks if LiDAR depth is available on the current device.
LiDAR depth data significantly improves the accuracy of NSDK features
such as device mapping, scanning, and localization.