Skip to main content
API Reference SwiftyNsdk

ARUtils

Utility functions for AR and device capability detection....

Declaration

struct ARUtils

Summary

Utility functions for AR and device capability detection. ARUtils provides helper methods for detecting device capabilities and AR features that are relevant to NSDK functionality.


Methods

NameTypeSummary
static isLidarAvailableBool
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
if ARUtils.isLidarAvailable() {
print("LiDAR is available - enhanced depth sensing enabled")
// Configure NSDK to use LiDAR data
let session = NsdkSession(apiKey: "your-key", useLidar: true)
} else {
print("LiDAR not available - using alternative depth methods")
let session = NsdkSession(apiKey: "your-key", 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