8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9b928ce commit cde014dCopy full SHA for cde014d
common/darwin/Classes/FlutterRPScreenRecorder.h
@@ -4,6 +4,9 @@
4
5
-(void)startCapture;
6
7
+// Stops the capture session asynchronously and notifies callback on completion.
8
+- (void)stopCaptureWithCompletionHandler:(nullable void (^)(void))completionHandler;
9
+
10
-(void)stopCapture;
11
12
@end
common/darwin/Classes/FlutterRPScreenRecorder.m
@@ -54,6 +54,14 @@ -(void)stopCapture
54
}
55
56
57
+- (void)stopCaptureWithCompletionHandler:(nullable void (^)(void))completionHandler
58
+{
59
+ [self stopCapture];
60
+ if(completionHandler != nil) {
61
+ completionHandler();
62
+ }
63
+}
64
65
-(void)handleSourceBuffer:(CMSampleBufferRef)sampleBuffer sampleType:(RPSampleBufferType)sampleType
66
{
67
if (CMSampleBufferGetNumSamples(sampleBuffer) != 1 || !CMSampleBufferIsValid(sampleBuffer) ||
0 commit comments