Constants
The following constants are available globally.
-
Short CameraKit version (ie 1.8.0)
Declaration
Objective-C
extern NSString *const _Nonnull SCCameraKitVersionSwift
let CameraKitVersion: String -
LensCore version (ie 243)
Declaration
Objective-C
extern const NSInteger SCCameraKitLensCoreVersionSwift
let CameraKitLensCoreVersion: Int -
Undocumented
Declaration
Objective-C
FOUNDATION_EXTERN NSErrorDomain const SCCameraKitAdjustmentsComponentErrorDomainSwift
let AdjustmentsComponentErrorDomain: String -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT NSInteger const SCCameraKitErrorUnspecifiedSwift
let SCCameraKitErrorUnspecified: Int -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT NSInteger const SCCameraKitErrorLensMetadataNotFoundSwift
let SCCameraKitErrorLensMetadataNotFound: Int -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT NSInteger const SCCameraKitErrorLensContentNotFoundSwift
let SCCameraKitErrorLensContentNotFound: Int -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT NSInteger const SCCameraKitErrorLensContentUrlMissingSwift
let SCCameraKitErrorLensContentUrlMissing: Int -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT NSInteger const SCCameraKitErrorLensChecksumMissingSwift
let SCCameraKitErrorLensChecksumMissing: Int -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT NSInteger const SCCameraKitErrorCannotWriteToFileSwift
let SCCameraKitErrorCannotWriteToFile: Int -
Reported when
SCCameraKitClientIDinInfo.plistis missing or invalid.Declaration
Objective-C
extern NSString *const _Nonnull SCCameraKitExceptionUnauthorizedSwift
let SCCameraKitExceptionUnauthorized: String -
Reported when backend fails to authenticate client. This could be due to numerous different reasons, one of the most common is due to having an invalid system date and time settings.
Declaration
Objective-C
extern NSString *const _Nonnull SCCameraKitExceptionInvalidApplicationStateSwift
let SCCameraKitExceptionInvalidApplicationState: String -
Reported when trying to pass an invalid lens class that’s different than the internal ones we support.
Declaration
Objective-C
extern NSString *const _Nonnull SCCameraKitExceptionInvalidLensSwift
let SCCameraKitExceptionInvalidLens: String -
Reported when trying to draw an invalid texture class that’s different than the internal ones we support.
Declaration
Objective-C
extern NSString *const _Nonnull SCCameraKitExceptionInvalidTextureSwift
let SCCameraKitExceptionInvalidTexture: String -
Reported whne processing fails due to a lens error. Lens errors are normally caused by dynamic scripting errors or missing resources in lens bundle.
Declaration
Objective-C
extern NSString *const _Nonnull SCCameraKitExceptionProcessingLensFailureSwift
let SCCameraKitExceptionProcessingLensFailure: String -
Reported when processing fails due to an internal error. Cause of such errors can be bugs in the lenses processing engine or resource (memory, disk) exhaustion.
Declaration
Objective-C
extern NSString *const _Nonnull SCCameraKitExceptionProcessingInternalFailureSwift
let SCCameraKitExceptionProcessingInternalFailure: String -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT NSString *const SCCameraKitLensRepositoryBundledGroupSwift
let SCCameraKitLensRepositoryBundledGroup: String -
Undocumented
Declaration
Objective-C
FOUNDATION_EXPORT NSString *const SCCameraKitLensesComponentErrorDomainSwift
let SCCameraKitLensesComponentErrorDomain: String
Constants Reference