Constants

The following constants are available globally.

  • Short CameraKit version (ie 1.8.0)

    Declaration

    Objective-C

    extern NSString *const _Nonnull SCCameraKitVersion

    Swift

    let CameraKitVersion: String
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXTERN NSErrorDomain const
        SCCameraKitAdjustmentsComponentErrorDomain

    Swift

    let AdjustmentsComponentErrorDomain: String
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSInteger const SCCameraKitErrorUnspecified

    Swift

    let SCCameraKitErrorUnspecified: Int
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSInteger const SCCameraKitErrorLensMetadataNotFound

    Swift

    let SCCameraKitErrorLensMetadataNotFound: Int
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSInteger const SCCameraKitErrorLensContentNotFound

    Swift

    let SCCameraKitErrorLensContentNotFound: Int
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSInteger const SCCameraKitErrorLensContentUrlMissing

    Swift

    let SCCameraKitErrorLensContentUrlMissing: Int
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSInteger const SCCameraKitErrorLensChecksumMissing

    Swift

    let SCCameraKitErrorLensChecksumMissing: Int
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSInteger const SCCameraKitErrorCannotWriteToFile

    Swift

    let SCCameraKitErrorCannotWriteToFile: Int
  • Reported when SCCameraKitClientID in Info.plist is missing or invalid.

    Declaration

    Objective-C

    extern NSString *const _Nonnull SCCameraKitExceptionUnauthorized

    Swift

    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 SCCameraKitExceptionInvalidApplicationState

    Swift

    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 SCCameraKitExceptionInvalidLens

    Swift

    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 SCCameraKitExceptionInvalidTexture

    Swift

    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 SCCameraKitExceptionProcessingLensFailure

    Swift

    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 SCCameraKitExceptionProcessingInternalFailure

    Swift

    let SCCameraKitExceptionProcessingInternalFailure: String
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSString *const SCCameraKitLensRepositoryBundledGroup

    Swift

    let SCCameraKitLensRepositoryBundledGroup: String
  • Undocumented

    Declaration

    Objective-C

    FOUNDATION_EXPORT NSString *const SCCameraKitLensesComponentErrorDomain

    Swift

    let SCCameraKitLensesComponentErrorDomain: String