SCCameraKitARSessionInput
Objective-C
@interface SCCameraKitARSessionInput : NSObject <SCCameraKitARInput>
Swift
class ARSessionInput : NSObject
ARSessionInput is a CameraKit provided wrapper for ARSession.
-
Create an AR Session input. Inits with a managed ARSession
Declaration
Objective-C
- (nonnull instancetype)init;
Swift
init()
-
Create an AR Session input with a preexisting session.
Note
the input will overwrite the preexisting settings for delegate and delegateQueueDeclaration
Objective-C
- (nonnull instancetype)initWithSession:(nonnull ARSession *)session;
Swift
init(session: ARSession)
Parameters
session
the ARSession to use.
-
Create an AR Session input with a preexisting session.
Note
the input will overwrite the preexisting settings for delegate and delegateQueueWarning
if your app supports lenses with true sizing, you MUST set this to be an instance of ARFaceTrackingConfiguration (additionally, we recommend setting the number of tracked faces to 0)Warning
using an instance of ARFaceTrackingConfiguration in this method will subject your app to additional app review, concerning your usage of the TrueDepth camera.Declaration
Objective-C
- (nonnull instancetype)initWithSession:(nonnull ARSession *)session frontCameraConfiguration: (nullable ARConfiguration *)frontCameraConfiguration;
Swift
init(session: ARSession, frontCameraConfiguration: ARConfiguration?)
Parameters
session
the ARSession to use.
frontCameraConfiguration
The ARConfiguration to use when using the front