13 #import <UIKit/UIKit.h>
15 #import <AppKit/AppKit.h>
18 NS_ASSUME_NONNULL_BEGIN
42 - (int)joinChannelExByToken:(NSString* _Nullable)token
46 joinSuccess:(
void(^ _Nullable)(NSString* _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannelEx(byToken:connection:delegate:mediaOptions:joinSuccess:));
83 - (int)joinChannelExByToken:(NSString* _Nullable)token
84 channelId:(NSString* _Nonnull)channelId
85 userAccount:(NSString* _Nonnull)userAccount
88 joinSuccess:(
void(^ _Nullable)(NSString* _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannelEx(byToken:channelId:userAccount:delegate:mediaOptions:joinSuccess:));
100 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(updateChannelEx(with:connection:));
112 leaveChannelBlock:(
void(^ _Nullable)(
AgoraChannelStats* _Nonnull stat))leaveChannelBlock NS_SWIFT_NAME(leaveChannelEx(_:leaveChannelBlock:));
138 - (int)muteLocalAudioStreamEx:(BOOL)mute connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(muteLocalAudioStreamEx(_:connection:));
152 - (int)muteLocalVideoStreamEx:(BOOL)mute connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(muteLocalVideoStreamEx(_:connection:));
166 leaveChannelBlock:(
void(^ _Nullable)(
AgoraChannelStats* _Nonnull stat))leaveChannelBlock;
180 - (int)muteRemoteAudioStreamEx:(NSUInteger)uid
182 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(muteRemoteAudioStreamEx(_:mute:connection:));
197 - (int)muteAllRemoteAudioStreamsEx:(BOOL)mute
198 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(muteAllRemoteAudioStreamsEx(_:connection:));
217 - (int)setVideoEncoderConfigurationEx:(AgoraVideoEncoderConfiguration* _Nonnull)config
218 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setVideoEncoderConfigurationEx(_:connection:));
231 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setupRemoteVideoEx(_:connection:));
244 - (int)setRemoteRenderModeEx:(NSUInteger)uid
246 mirror:(AgoraVideoMirrorMode)mirror
247 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setRemoteRenderModeEx(_:mode:mirror:connection:));
265 - (int)muteRemoteVideoStreamEx:(NSUInteger)uid
267 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(muteRemoteVideoStreamEx(_:mute:connection:));
282 - (int)muteAllRemoteVideoStreamsEx:(BOOL)mute
283 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(muteAllRemoteVideoStreamsEx(_:connection:));
300 - (int)enableDualStreamModeEx:(BOOL)enabled
302 connection:(
AgoraRtcConnection* _Nonnull)connection NS_SWIFT_NAME(enableDualStreamModeEx(_:streamConfig:connection:)) __deprecated_msg("use setDualStreamModeEx: instead.");
317 connection:(
AgoraRtcConnection* _Nonnull)connection NS_SWIFT_NAME(setDualStreamModeEx(_:streamConfig:connection:));
340 - (int)setRemoteVideoStreamEx:(NSUInteger)uid
342 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setRemoteVideoStreamEx(_:type:connection:));
354 - (int)setRemoteVideoSubscriptionOptionsEx:(NSUInteger)uid
356 connection:(
AgoraRtcConnection* _Nonnull)connection NS_SWIFT_NAME(setRemoteVideoSubscriptionOptionsEx(_:options:connection:));
372 - (int)pushExternalEncodedVideoFrameEx:(NSData* _Nonnull)frame
374 videoTrackId:(NSUInteger)videoTrackId NS_SWIFT_NAME(pushExternalEncodedVideoFrameEx(_:info:videoTrackId:));
394 - (BOOL)pushExternalVideoFrame:(
AgoraVideoFrame * _Nonnull)frame videoTrackId:(NSUInteger)videoTrackId NS_SWIFT_NAME(pushExternalVideoFrame(_:videoTrackId:));
406 - (
AgoraUserInfo* _Nullable)getUserInfoByUserAccountEx:(NSString* _Nonnull)userAccount
408 withError:(AgoraErrorCode* _Nullable)error NS_SWIFT_NAME(getUserInfo(byUserAccountEx:connection:withError:));
422 - (
AgoraUserInfo* _Nullable)getUserInfoByUidEx:(NSUInteger)uid
424 withError:(AgoraErrorCode* _Nullable)error NS_SWIFT_NAME(getUserInfo(byUidEx:connection:withError:));
435 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
456 - (int)enableLoopbackRecordingEx:(BOOL)enabled
457 deviceName:(NSString* _Nullable)deviceName
458 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(enableLoopbackRecordingEx(_:deviceName:connection:));
475 - (int)adjustRecordingSignalVolumeEx:(NSInteger)volume
491 - (int)muteRecordingSignalEx:(BOOL)mute
516 - (int)adjustUserPlaybackSignalVolumeEx:(NSUInteger)uid
517 volume:(NSInteger)volume
520 - (int)sendCustomReportMessageEx:(NSString * _Nullable)messageId
521 category:(NSString * _Nullable)category
522 event:(NSString * _Nullable)event
523 label:(NSString * _Nullable)label
524 value:(NSInteger)value
525 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(sendCustomReportMessageEx(_:category:event:label:value:connection:));
527 - (int)enableAudioVolumeIndicationEx:(NSInteger)interval
528 smooth:(NSInteger)smooth
529 reportVad:(BOOL)reportVad
530 connection:(
AgoraRtcConnection* _Nonnull)connection NS_SWIFT_NAME(enableAudioVolumeIndicationEx(_:smooth:reportVad:connection:));
556 - (int)setRemoteVoicePositionEx:(NSUInteger)uid
559 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setRemoteVoicePositionEx(_:pan:gain:connection:));
577 - (int)setRemoteUserSpatialAudioParamsEx:(NSUInteger)uid
578 params:(AgoraSpatialAudioParams* _Nonnull)params
579 connection:(
AgoraRtcConnection* _Nonnull)connection NS_SWIFT_NAME(setRemoteUserSpatialAudioParamsEx(_:params:connection:));
607 - (int)addVideoWatermarkEx:(NSURL* _Nonnull)url options:(
WatermarkOptions* _Nonnull)options connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(addVideoWatermarkEx(_:options:connection:));
615 - (int)clearVideoWatermarkEx:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(clearVideoWatermarkEx(_:));
641 - (int)createDataStreamEx:(NSInteger * _Nonnull)streamId
642 reliable:(BOOL)reliable
643 ordered:(BOOL)ordered
644 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(createDataStreamEx(_:reliable:ordered:connection:));
655 - (int)createDataStreamEx:(NSInteger * _Nonnull)streamId
657 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(createDataStreamEx(_:config:connection:));
683 - (int)sendStreamMessageEx:(NSInteger)streamId
684 data:(NSData * _Nonnull)data
685 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(sendStreamMessageEx(_:data:connection:));
704 - (int)setHighPriorityUserListEx:(NSArray <NSNumber *> *_Nullable)uidList
705 option:(AgoraStreamFallbackOptions)option
726 - (int)setSubscribeAudioBlocklistEx:(NSArray <NSNumber *> *_Nonnull)blocklist connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setSubscribeAudioBlocklistEx(_:connection:));
743 - (int)setSubscribeAudioAllowlistEx:(NSArray <NSNumber *> *_Nonnull)allowlist connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setSubscribeAudioAllowlistEx(_:connection:));
758 - (int)setSubscribeVideoBlocklistEx:(NSArray <NSNumber *> *_Nonnull)blocklist connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setSubscribeVideoBlocklistEx(_:connection:));
775 - (int)setSubscribeVideoAllowlistEx:(NSArray <NSNumber *> *_Nonnull)allowlist connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(setSubscribeVideoAllowlistEx(_:connection:));
777 - (NSInteger)takeSnapshotEx:(
AgoraRtcConnection * _Nonnull)connection uid:(NSInteger)uid filePath:(NSString* _Nonnull)filePath NS_SWIFT_NAME(takeSnapshotEx(_:uid:filePath:));
800 - (int)startRtmpStreamWithoutTranscodingEx:(NSString* _Nonnull)url
801 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(startRtmpStreamWithoutTranscodingEx(_:connection:));
813 - (int)startRtmpStreamWithTranscodingEx:(NSString* _Nonnull)url
814 transcoding:(AgoraLiveTranscoding* _Nullable)transcoding
815 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(startRtmpStreamWithTranscodingEx(_:transcoding:connection:));
827 - (int)updateRtmpTranscodingEx:(AgoraLiveTranscoding* _Nullable)transcoding
828 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(updateRtmpTranscodingEx(_:connection:));
837 - (int)stopRtmpStreamEx:(NSString* _Nonnull)url
838 connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(stopRtmpStreamEx(_:connection:));
868 - (int)startChannelMediaRelayEx:(
AgoraChannelMediaRelayConfiguration * _Nonnull)config connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(startChannelMediaRelayEx(_:connection:)) __deprecated_msg("use startOrUpdateChannelMediaRelayEx instead.");
882 - (int)updateChannelMediaRelayEx:(
AgoraChannelMediaRelayConfiguration * _Nonnull)config connection:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(updateChannelMediaRelayEx(_:connection:)) __deprecated_msg("use startOrUpdateChannelMediaRelayEx instead.");
898 - (int)stopChannelMediaRelayEx:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(stopChannelMediaRelayEx(_:));
911 - (int)pauseAllChannelMediaRelayEx:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(pauseAllChannelMediaRelayEx(_:));
924 - (int)resumeAllChannelMediaRelayEx:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(resumeAllChannelMediaRelayEx(_:));
942 - (int)startMediaRenderingTracingEx:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(startMediaRenderingTracingEx(_:));
974 - (int)enableEncryptionEx:(
bool)enabled encryptionConfig:(
AgoraEncryptionConfig *_Nonnull)config connection:(
AgoraRtcConnection* _Nonnull)connection NS_SWIFT_NAME(enableEncryptionEx(_:encryptionConfig:connection:));
987 - (NSString * _Nullable)getCallIdEx:(
AgoraRtcConnection * _Nonnull)connection NS_SWIFT_NAME(getCallIdEx(_:));
990 NS_ASSUME_NONNULL_END