Skip to main content

STRUCT

ARUtils

public struct ARUtils

Utility functions for AR and device capability detection.

ARUtils provides helper methods for detecting device capabilities and AR features that are relevant to ARDK functionality.

Methods​

isLidarAvailable()​

public static func isLidarAvailable() -> Bool

Checks if LiDAR depth is available on the current device.

LiDAR depth data significantly improves the accuracy of ARDK 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 ARDK to use LiDAR data
let session = ArdkSession(apiKey: "your-key", useLidar: true)
} else {
print("LiDAR not available - using alternative depth methods")
let session = ArdkSession(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