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;
Swift
func processor(_ processor: SCCameraKitLensProcessor, didApplyLens lens: SCCameraKitLens)
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;
Swift
func processorDidIdle(_ processor: SCCameraKitLensProcessor)
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;
Swift
optional func processor(_ processor: SCCameraKitLensProcessor, firstFrameDidBecomeReadyFor lens: SCCameraKitLens)
Parameters
processor
lens processor instance
lens
current lens applied whose frame is ready for