MillicastSDK 2.0.0
Loading...
Searching...
No Matches
Instance Methods | Properties | List of all members
MCAppShareSource Class Reference

Uses Replaykit to capture the screen of the application. More...

#import <screen_share_source.h>

Inheritance diagram for MCAppShareSource:
Inheritance graph
[legend]
Collaboration diagram for MCAppShareSource:
Collaboration graph
[legend]

Instance Methods

(nonnull instancetype) - initWithRecorder:
 
(nonnull instancetype) - initWithName:recorder:
 
(void) - startCaptureWithCompletionHandler:
 
(void) - stopCaptureWithCompletionHandler:
 

Properties

NSString *_Nonnull name
 

Detailed Description

Uses Replaykit to capture the screen of the application.

Method Documentation

◆ 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.

Property Documentation

◆ name

- (NSString* _Nonnull) name
readnonatomicassign

The documentation for this class was generated from the following file: