DCEFrameListener
The protocol to handle callback when previewed frame callback is returned.
@protocol CameraEnhancerListener <NSObject>
| Method | Type | Description |
|---|---|---|
frameOutPutCallback |
required | Callback when the DCEFrame is output. |
frameOutPutCallback
Callback when the DCEFrame is output.
- (void)frameOutPutCallback:(DCEFrame*)frame timeStamp:(NSTimeInterval)timeStamp;
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