SCCameraKitARSessionInput

Objective-C


@interface SCCameraKitARSessionInput : NSObject <SCCameraKitARInput>

Swift

class ARSessionInput : NSObject

AVSessionInput is a CameraKit provided wrapper for AVCaptureSession. It may make adjustments to things like color formats in order to process frames. You are still responsible for doing the general configuration of the capture session, such as adding devices.

  • 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 delegateQueue

    Declaration

    Objective-C

    - (nonnull instancetype)initWithSession:(nonnull ARSession *)session;

    Swift

    init(session: ARSession)

    Parameters

    session

    the AVCaptureSession to use.

  • Create an AR Session input with a preexisting session.

    Note

    the input will overwrite the preexisting settings for delegate and delegateQueue

    Warning

    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 AVCaptureSession to use.

    frontCameraConfiguration

    The ARConfiguration to use when using the front