Skip to main content
API Reference SwiftyNsdk ARUtils

isLidarAvailable

Checks if LiDAR depth is available on the current device....

Declaration

static func isLidarAvailable() -> Bool

Summary

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.
- Returns: true if LiDAR is available and supported, false otherwise
## Example
swift <br />if ARUtils.isLidarAvailable() &#123; <br /> print("LiDAR is available - enhanced depth sensing enabled") <br /> // Configure NSDK to use LiDAR data <br /> let session = NsdkSession(apiKey: "your-key", useLidar: true) <br />&#125; else &#123; <br /> print("LiDAR not available - using alternative depth methods") <br /> let session = NsdkSession(apiKey: "your-key", useLidar: false) <br />&#125; <br />
## 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


ON THIS PAGE