SCCameraKitLensesComponent

Objective-C

@protocol SCCameraKitLensesComponent <NSObject>

Swift

protocol LensesComponent : NSObjectProtocol

The lenses component wraps several lens-related classes.

  • The repository for lenses. Lists available lenses, etc. in the lenses folder

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) id<SCCameraKitLensRepository> _Nonnull repository;

    Swift

    var repository: LensRepository { get }
  • Handles the actual effect application. Will be null if CameraKit is not running with a valid input.

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly, nullable) id<SCCameraKitLensProcessor> processor;
  • Prefetcher to prefetch lens content to reduce time when applying lens

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) id<SCCameraKitLensPrefetcher> _Nonnull prefetcher;
  • Property to deal with preferences (ie. clear stored preferences)

    Declaration

    Objective-C

    @property (nonatomic, strong, readonly) id<SCCameraKitPreferences> _Nonnull preferences;