SCCameraKitSession
Objective-C
@interface SCCameraKitSession : NSObject <SCCameraKitProtocol>
Swift
class Session : NSObject, CameraKitProtocol
CameraKit handles interaction with the camera and contains several components like lenses.
-
Init with session and lenses config instance to configure properties within lenses component
Declaration
Objective-C
- (nonnull instancetype) initWithSessionConfig:(nullable SCCameraKitSessionConfig *)sessionConfig lensesConfig:(nonnull SCCameraKitLensesConfig *)lensesConfig errorHandler:(nullable id<SCCameraKitErrorHandler>)errorHandler;
Parameters
sessionConfig
session config to configure session with application id and api token
lensesConfig
lenses config to configure lenses component such as caches
errorHandler
optional error handler instance to handle exceptions thrown by CameraKit
-
Init with lenses config instance to configure properties within lenses component
Declaration
Objective-C
- (nonnull instancetype) initWithLensesConfig:(nonnull SCCameraKitLensesConfig *)lensesConfig errorHandler:(nullable id<SCCameraKitErrorHandler>)errorHandler;
Parameters
lensesConfig
lenses config to configure lenses components such as caches
errorHandler
optional error handler instance to handle exceptions thrown by CameraKit