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: any SCCameraKitLensProcessor, didApplyLens lens: any SCCameraKitLens)Parameters
processorlens processor instance
lenslens 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: any SCCameraKitLensProcessor)Parameters
processorlens 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: any SCCameraKitLensProcessor, firstFrameDidBecomeReadyFor lens: any SCCameraKitLens)Parameters
processorlens processor instance
lenscurrent lens applied whose frame is ready for