Uses Replaykit to capture the screen of the application.
More...
#import <screen_share_source.h>
Uses Replaykit to capture the screen of the application.
◆ initWithName:recorder:
- (nonnull instancetype) initWithName: |
|
(NSString *_Nonnull) |
name |
recorder: |
|
(RPScreenRecorder *_Nonnull) |
recorder |
|
|
| |
Initializes the source with a name to identify the source.
- Parameters:
- recorder: A ReplayKit recorder.
- name: The source name
◆ initWithRecorder:
- (nonnull instancetype) initWithRecorder: |
|
(RPScreenRecorder *_Nonnull) |
recorder |
|
Initializes the source with a recorder.
- Parameters:
- recorder: A ReplayKit recorder.
◆ startCaptureWithCompletionHandler:
- (void) startCaptureWithCompletionHandler: |
|
(nonnull void(^)(MCAudioTrack *_Nullable audioTrack, MCVideoTrack *_Nullable videoTrack, NSError *_Nullable)) |
completionHandler |
|
Start capturing the application screen.
- Parameters:
- completionHandler: handler that is invoked when the result is ready. The capture process produces an audio track and a video track if successful. See
MCPublisher/addTrackWithAudioTrack:completionHandler:
and MCPublisher/addTrackWithVideoTrack:completionHandler:
to attach those tracks to a publisher.
◆ stopCaptureWithCompletionHandler:
- (void) stopCaptureWithCompletionHandler: |
|
(nonnull void(^)(NSError *_Nullable)) |
completionHandler |
|
Stops capturing the application screen.
- Parameters:
- completionHandler: handler that is invoked when the result is ready.
◆ name
- (NSString* _Nonnull) name |
|
readnonatomicassign |
The documentation for this class was generated from the following file: