ZegoReplayKitExt Class Reference
Inherits from | NSObject |
---|---|
Declared in | ZegoExpressDefines.h |
+ sharedInstance
Extension singleton instance.
+ (ZegoReplayKitExt *)sharedInstance
Return Value
Extension singleton instance.
Declared In
ZegoExpressDefines.h
– setupWithDelegate:
Screen capture extension application event notification callback. Passing [nil] means no callback notification will be received.
- (void)setupWithDelegate:(id<ZegoReplayKitExtHandler>)delegate
Parameters
delegate |
Screen capture extension application event notification callback. Passing [nil] means no callback notification will be received. |
---|
Declared In
ZegoExpressDefines.h
– setupWithDelegate:appGroup:
Screen capture extension application event notification callback. Passing [nil] means no callback notification will be received.
- (void)setupWithDelegate:(id<ZegoReplayKitExtHandler>)delegate appGroup:(NSString *)groupID
Parameters
delegate |
Screen capture extension application event notification callback. Passing [nil] means no callback notification will be received. |
---|---|
groupID |
The host app and the extension app should belong to the same App Group, and the AppGroupID needs to be passed in here. |
Declared In
ZegoExpressDefines.h
– finished
Available since: 3.1.0 Use cases: When the screen recording is stopped through the system control center, RPBroadcastSampleHandler.broadcastFinished will be called back and called in the broadcastFinished method.
- (void)finished
Declared In
ZegoExpressDefines.h
– sendSampleBuffer:withType:
CMSampleBuffer object which contains either video or audio data.
- (void)sendSampleBuffer:(CMSampleBufferRef)sampleBuffer withType:(RPSampleBufferType)sampleBufferType
Parameters
sampleBuffer |
CMSampleBuffer object which contains either video or audio data. |
---|---|
sampleBufferType |
Determine’s the type of the sample buffer defined by the RPSampleBufferType enum. |
Declared In
ZegoExpressDefines.h