The abstract base class for AR session configurations.
SDK
- iOS 11.0+
Framework
- ARKit
Declaration
class ARConfiguration : NSObject
Overview
ARConfiguration
is an abstract class; you do not create or work with instances of this class.
To run an AR session, create an instance of the concrete ARConfiguration
subclass that provides the kind of augmented reality experience you want to use in your app or game. Then, set up the configuration object's properties and pass the configuration to your session's run(_:
method. ARKit includes the following concrete configuration classes:
ARWorld
Tracking Configuration Provides high-quality AR experiences that use the back-facing camera to precisely track a device's position and orientation and allow plane detection, hit testing, environment-based lighting, and image and object detection.
AROrientation
Tracking Configuration Provides basic AR experiences that use the back-facing camera and track only a device's orientation.
ARImage
Tracking Configuration Provides basic AR experiences that use the back-facing camera and track visible images regardless of the user's environment.
ARFace
Tracking Configuration Provides AR experiences that use the front-facing camera and track the movement and expressions of the user's face.
ARObject
Scanning Configuration Provides for using the back-facing camera to collect high-fidelity spatial data, creating reference objects for detection in other AR experiences.