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() { <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 />} else { <br /> print("LiDAR not available - using alternative depth methods") <br /> let session = NsdkSession(apiKey: "your-key", useLidar: false) <br />} <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
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:
trueif LiDAR is available and supported,falseotherwise## Example
swift <br />if ARUtils.isLidarAvailable() { <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 />} else { <br /> print("LiDAR not available - using alternative depth methods") <br /> let session = NsdkSession(apiKey: "your-key", useLidar: false) <br />} <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