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
lensesfolderDeclaration
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;Swift
var processor: SCCameraKitLensProcessor? { get } -
Prefetcher to prefetch lens content to reduce time when applying lens
Declaration
Objective-C
@property (nonatomic, strong, readonly) id<SCCameraKitLensPrefetcher> _Nonnull prefetcher;Swift
var prefetcher: SCCameraKitLensPrefetcher { get } -
Property to deal with preferences (ie. clear stored preferences)
Declaration
Objective-C
@property (nonatomic, strong, readonly) id<SCCameraKitPreferences> _Nonnull preferences;Swift
var preferences: SCCameraKitPreferences { get }
SCCameraKitLensesComponent Protocol Reference