DCEFrameListener
The protocol to handle callback when previewed frame callback is returned.
- Objective-C
- Swift
@protocol CameraEnhancerListener <NSObject>
protocol DCECameraStateListener : NSObjectProtocol
Method | Type | Description |
---|---|---|
frameOutPutCallback |
required | Callback when the DCEFrame is output. |
frameOutPutCallback
Callback when the DCEFrame
is output.
- Objective-C
- Swift
- (void)frameOutPutCallback:(DCEFrame*)frame timeStamp:(NSTimeInterval)timeStamp;
func frameOutPutCallback(_ frame: DCEFrame, timeStamp: TimeInterval)
Parameters
frame
: The parameter is the original DCEFrame
with detailed frame information. View more in DCEFrame
class.
timeStamp
: The time stamp that records when the DCEFrame is output.
Code Snippet
- Objective-C
- Swift
[_dce addListener:self]; - (void)frameOutPutCallback:(DCEFrame *)frame timeStamp:(NSTimeInterval)timeStamp{ // TODO add your code }
dce.addListener(self) func frameOutPutCallback(_ frame: DCEFrame, timeStamp: TimeInterval){ // TODO add your code }
See also