SCCameraKitLensProcessorObserver
Objective-C
@protocol SCCameraKitLensProcessorObserver <NSObject>
Swift
protocol ProcessorObserver : NSObjectProtocol
Allows conformers to be notified of changes to lens processor state
-
Notifies that the lens processor did apply lens
Declaration
Objective-C
- (void)processor:(nonnull id<SCCameraKitLensProcessor>)processor didApplyLens:(nonnull id<SCCameraKitLens>)lens;
Parameters
processor
lens processor instance
lens
lens applied instance
-
Notifies that the lens processor did clear any active lens and is now in an “idle” state
Declaration
Objective-C
- (void)processorDidIdle:(nonnull id<SCCameraKitLensProcessor>)processor;
Parameters
processor
lens processor instance
-
Notifies the listener that the first frame with the lens applied is ready
Declaration
Objective-C
- (void)processor:(nonnull id<SCCameraKitLensProcessor>)processor firstFrameDidBecomeReadyForLens:(nonnull id<SCCameraKitLens>)lens;
Parameters
processor
lens processor instance
lens
current lens applied whose frame is ready for