8 #import <Foundation/Foundation.h>
33 #pragma mark - AgoraRtcEngineKit
48 #pragma mark Core Methods
60 @property(nonatomic, weak) id<AgoraRtcEngineDelegate> _Nullable
delegate;
76 + (instancetype _Nonnull)sharedEngineWithAppId:(NSString * _Nonnull)appId
139 - (int)preloadChannelByToken:(NSString * _Nullable)token
140 channelId:(NSString * _Nonnull)channelId
141 uid:(NSUInteger)uid NS_SWIFT_NAME(preloadChannel(byToken:channelId:uid:));
182 - (int)preloadChannelByTokenWithUserAccount:(NSString * _Nullable)token
183 channelId:(NSString * _Nonnull)channelId
184 userAccount:(NSString * _Nonnull)userAccount NS_SWIFT_NAME(preloadChannelWithUserAccount(byToken:channelId:userAccount:));
203 - (int)updatePreloadChannelToken:(NSString * _Nonnull)token NS_SWIFT_NAME(updatePreloadChannelToken(_:));
267 - (int)joinChannelByToken:(NSString * _Nullable)token
268 channelId:(NSString * _Nonnull)channelId
269 info:(NSString * _Nullable)info
271 joinSuccess:(
void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannel(byToken:channelId:info:uid:joinSuccess:));
333 - (int)joinChannelByToken:(NSString * _Nullable)token
334 channelId:(NSString * _Nonnull)channelId
337 joinSuccess:(
void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannel(byToken:channelId:uid:mediaOptions:joinSuccess:));
364 - (int)leaveChannel:(
void(^ _Nullable)(
AgoraChannelStats * _Nonnull stat))leaveChannelBlock NS_SWIFT_NAME(leaveChannel(_:));
393 leaveChannelBlock:(void (^ _Nullable)(
AgoraChannelStats * _Nonnull))leaveChannelBlock NS_SWIFT_NAME(leaveChannel(_:leaveChannelBlock:));
412 - (int)setChannelProfile:(
AgoraChannelProfile)profile NS_SWIFT_NAME(setChannelProfile(_:));
439 - (int)setClientRole:(
AgoraClientRole)role NS_SWIFT_NAME(setClientRole(_:));
486 - (int)renewToken:(NSString * _Nonnull)token NS_SWIFT_NAME(renewToken(_:));
574 - (int)enableWirelessAccelerate:(BOOL)enabled NS_SWIFT_NAME(enableWirelessAccelerate(_:));
631 #pragma mark Core Audio
683 - (int)enableLocalAudio:(BOOL)enabled NS_SWIFT_NAME(enableLocalAudio(_:));
700 - (int)setAudioProfile:(
AgoraAudioProfile)profile NS_SWIFT_NAME(setAudioProfile(_:));
702 - (int)setAudioScenario:(
AgoraAudioScenario)scenario NS_SWIFT_NAME(setAudioScenario(_:));
725 - (int)enableAudioVolumeIndication:(NSInteger)interval
726 smooth:(NSInteger)smooth
727 reportVad:(BOOL)reportVad NS_SWIFT_NAME(enableAudioVolumeIndication(_:smooth:reportVad:));
748 - (int)setEnableSpeakerphone:(BOOL)enableSpeaker NS_SWIFT_NAME(setEnableSpeakerphone(_:));
759 - (BOOL)isSpeakerphoneEnabled NS_SWIFT_NAME(isSpeakerphoneEnabled());
788 - (int)setDefaultAudioRouteToSpeakerphone:(BOOL)defaultToSpeaker NS_SWIFT_NAME(setDefaultAudioRouteToSpeakerphone(_:));
802 - (int)adjustRecordingSignalVolume:(NSInteger)volume NS_SWIFT_NAME(adjustRecordingSignalVolume(_:));
815 - (int)adjustPlaybackSignalVolume:(NSInteger)volume NS_SWIFT_NAME(adjustPlaybackSignalVolume(_:));
836 - (int)adjustUserPlaybackSignalVolume:(NSUInteger)uid volume:(int)volume NS_SWIFT_NAME(adjustUserPlaybackSignalVolume(_:volume:));
846 - (int)muteRecordingSignal:(BOOL)muted NS_SWIFT_NAME(muteRecordingSignal(_:));
858 - (int)muteLocalAudioStream:(BOOL)mute NS_SWIFT_NAME(muteLocalAudioStream(_:));
873 - (int)muteRemoteAudioStream:(NSUInteger)uid mute:(BOOL)mute NS_SWIFT_NAME(muteRemoteAudioStream(_:mute:));
900 - (int)muteAllRemoteAudioStreams:(BOOL)mute NS_SWIFT_NAME(muteAllRemoteAudioStreams(_:));
912 - (int)startRecordingDeviceTest:(
int)indicationInterval NS_SWIFT_NAME(startRecordingDeviceTest(_:));
939 - (int)startPlaybackDeviceTest:(NSString * _Nonnull)audioFileName NS_SWIFT_NAME(startPlaybackDeviceTest(_:));
964 - (int)registerExtensionWithVendor:(NSString * __nonnull)provider
965 extension:(NSString * __nonnull)extension
966 sourceType:(
AgoraMediaSourceType)sourceType NS_SWIFT_NAME(registerExtension(withVendor:extension:sourceType:));
987 - (int)enableExtensionWithVendor:(NSString * __nonnull)provider extension:(NSString * __nonnull)extension enabled:(BOOL)enabled NS_SWIFT_NAME(enableExtension(withVendor:extension:enabled:));
1009 - (int)enableExtensionWithVendor:(NSString * __nonnull)provider
1010 extension:(NSString * __nonnull)extension
1011 enabled:(BOOL)enabled
1012 sourceType:(
AgoraMediaSourceType)sourceType NS_SWIFT_NAME(enableExtension(withVendor:extension:enabled:sourceType:));
1034 - (int)enableExtensionWithVendor:(NSString * __nonnull)provider
1035 extension:(NSString * __nonnull)extension
1037 enabled:(BOOL)enabled NS_SWIFT_NAME(enableExtension(withVendor:extension:extensionInfo:enabled:));
1050 - (int)setExtensionProviderPropertyWithVendor:(NSString * __nonnull)provider
1051 key:(NSString * __nonnull)key
1052 value:(NSString * __nonnull)value NS_SWIFT_NAME(setExtensionProviderPropertyWithVendor(_:key:value:));
1064 - (int)setExtensionPropertyWithVendor:(NSString * __nonnull)provider
1065 extension:(NSString * __nonnull)extension
1066 key:(NSString * __nonnull)key
1067 value:(NSString * __nonnull)value NS_SWIFT_NAME(setExtensionPropertyWithVendor(_:extension:key:value:));
1082 - (int)setExtensionPropertyWithVendor:(NSString * __nonnull)provider
1083 extension:(NSString * __nonnull)extension
1084 key:(NSString * __nonnull)key
1085 value:(NSString * __nonnull)value
1086 sourceType:(
AgoraMediaSourceType)sourceType NS_SWIFT_NAME(setExtensionPropertyWithVendor(_:extension:key:value:sourceType:));
1101 - (int)setExtensionPropertyWithVendor:(NSString * __nonnull)provider
1102 extension:(NSString * __nonnull)extension
1104 key:(NSString * __nonnull)key
1105 value:(NSString * __nonnull)value NS_SWIFT_NAME(setExtensionPropertyWithVendor(_:extension:extensionInfo:key:value:));
1117 - (NSString * _Nullable)getExtensionPropertyWithVendor:(NSString * __nonnull)provider
1118 extension:(NSString * __nonnull)extension
1119 key:(NSString * __nonnull)key NS_SWIFT_NAME(getExtensionProperty(withVendor:extension:key:));
1132 - (NSString * _Nullable)getExtensionPropertyWithVendor:(NSString * __nonnull)provider
1133 extension:(NSString * __nonnull)extension
1134 key:(NSString * __nonnull)key
1135 sourceType:(
AgoraMediaSourceType)sourceType NS_SWIFT_NAME(getExtensionProperty(withVendor:extension:key:sourceType:));
1148 - (NSString * _Nullable)getExtensionPropertyWithVendor:(NSString * __nonnull)provider
1149 extension:(NSString * __nonnull)extension
1151 key:(NSString * __nonnull)key NS_SWIFT_NAME(getExtensionProperty(withVendor:extension:extensionInfo:key:));
1153 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
1174 - (int)enableLoopbackRecording:(BOOL)enabled deviceName:(NSString* _Nullable)deviceName NS_SWIFT_NAME(enableLoopbackRecording(_:deviceName:));
1188 - (int)adjustLoopbackSignalVolume:(NSInteger)volume NS_SWIFT_NAME(adjustLoopbackSignalVolume(_:));
1196 - (int)getLoopbackRecordingVolume NS_SWIFT_NAME(getLoopbackRecordingVolume());
1199 #pragma mark Core Video
1259 - (int)enableLocalVideo:(BOOL)enabled NS_SWIFT_NAME(enableLocalVideo(_:));
1295 - (int)setVideoEncoderConfiguration:(AgoraVideoEncoderConfiguration * _Nonnull)config NS_SWIFT_NAME(setVideoEncoderConfiguration(_:));
1316 - (int)setupLocalVideo:(
AgoraRtcVideoCanvas * _Nullable)local NS_SWIFT_NAME(setupLocalVideo(_:));
1337 mirror:(AgoraVideoMirrorMode)mirror NS_SWIFT_NAME(setLocalRenderMode(_:mirror:));
1395 - (int)setupRemoteVideo:(
AgoraRtcVideoCanvas * _Nonnull)remote NS_SWIFT_NAME(setupRemoteVideo(_:));
1406 - (int)setRemoteRenderMode:(NSUInteger)uid
1408 mirror:(AgoraVideoMirrorMode)mirror NS_SWIFT_NAME(setRemoteRenderMode(_:mode:mirror:));
1422 - (int)muteLocalVideoStream:(BOOL)mute NS_SWIFT_NAME(muteLocalVideoStream(_:));
1439 - (int)muteRemoteVideoStream:(NSUInteger)uid
1440 mute:(BOOL)mute NS_SWIFT_NAME(muteRemoteVideoStream(_:mute:));
1467 - (int)muteAllRemoteVideoStreams:(BOOL)mute NS_SWIFT_NAME(muteAllRemoteVideoStreams(_:));
1482 - (int)setBeautyEffectOptions:(BOOL)enable options:(
AgoraBeautyOptions* _Nullable)options NS_SWIFT_NAME(setBeautyEffectOptions(_:options:));
1498 - (int)setBeautyEffectOptions:(BOOL)enable options:(
AgoraBeautyOptions* _Nullable)options sourceType:(
AgoraMediaSourceType)sourceType NS_SWIFT_NAME(setBeautyEffectOptions(_:options:sourceType:));
1513 - (int)setFaceShapeBeautyOptions:(BOOL)enable options:(
AgoraFaceShapeBeautyOptions* _Nullable)options NS_SWIFT_NAME(setFaceShapeBeautyOptions(_:options:));
1560 - (int)setFaceShapeAreaOptions:(
AgoraFaceShapeAreaOptions* _Nullable)options NS_SWIFT_NAME(setFaceShapeAreaOptions(_:));
1621 - (int)setVideoDenoiserOptions:(BOOL)enable options:(
AgoraVideoDenoiserOptions* _Nullable)options NS_SWIFT_NAME(setVideoDenoiserOptions(_:options:));
1674 - (int)setLowlightEnhanceOptions:(BOOL)enable options:(
AgoraLowlightEnhanceOptions* _Nullable)options NS_SWIFT_NAME(setLowlightEnhanceOptions(_:options:));
1727 - (int)setColorEnhanceOptions:(BOOL)enable options:(
AgoraColorEnhanceOptions* _Nullable)options NS_SWIFT_NAME(setColorEnhanceOptions(_:options:));
1879 - (int)setVideoQoEPreference:(
AgoraQoEPreferenceType)preferenceType NS_SWIFT_NAME(setVideoQoEPreference(_:));
1891 #pragma mark Audio Effect
1906 - (int)setLocalVoicePitch:(
double)pitch NS_SWIFT_NAME(setLocalVoicePitch(_:));
1917 - (int)setLocalVoiceFormant:(
double)formantRatio;
1926 - (int)setLocalVoiceEqualizationOfBandFrequency:(AgoraAudioEqualizationBandFrequency)bandFrequency withGain:(NSInteger)gain NS_SWIFT_NAME(setLocalVoiceEqualizationOf(_:withGain:));
1935 - (int)setLocalVoiceReverbOfType:(AgoraAudioReverbType)reverbType withValue:(NSInteger)value NS_SWIFT_NAME(setLocalVoiceReverbOf(_:withValue:));
1937 #pragma mark Audio Effect Playback
1967 - (int)preloadEffect:(
int)soundId
1968 filePath:(NSString* _Nonnull)filePath NS_SWIFT_NAME(preloadEffect(_:filePath:));
1994 - (int)preloadEffect:(
int)soundId
1995 filePath:(NSString* _Nonnull)filePath
1996 startPos:(
int)startPos NS_SWIFT_NAME(preloadEffect(_:filePath:startPos:));
2021 - (int)playEffect:(
int)soundId
2022 filePath:(NSString* _Nonnull)filePath
2023 loopCount:(NSInteger)loopCount
2026 gain:(NSInteger)gain NS_SWIFT_NAME(playEffect(_:filePath:loopCount:pitch:pan:gain:));
2052 - (int)playEffect:(
int)soundId
2053 filePath:(NSString* _Nonnull)filePath
2054 loopCount:(NSInteger)loopCount
2057 gain:(NSInteger)gain
2058 startPos:(
int)startPos NS_SWIFT_NAME(playEffect(_:filePath:loopCount:pitch:pan:gain:startPos:));
2091 - (int)playEffect:(
int)soundId
2092 filePath:(NSString* _Nonnull)filePath
2093 loopCount:(NSInteger)loopCount
2096 gain:(NSInteger)gain
2097 publish:(BOOL)publish NS_SWIFT_NAME(playEffect(_:filePath:loopCount:pitch:pan:gain:publish:));
2131 - (int)playEffect:(
int)soundId
2132 filePath:(NSString* _Nonnull)filePath
2133 loopCount:(NSInteger)loopCount
2136 gain:(NSInteger)gain
2137 publish:(BOOL)publish
2138 startPos:(int)startPos NS_SWIFT_NAME(playEffect(_:filePath:loopCount:pitch:pan:gain:publish:startPos:));
2170 - (int)playAllEffectsWithLoopCount:(NSInteger)loopCount
2173 gain:(NSInteger)gain
2174 publish:(BOOL)publish NS_SWIFT_NAME(playAllEffects(withLoopCount:pitch:pan:gain:publish:));
2183 - (int)getEffectsVolume NS_SWIFT_NAME(getEffectsVolume());
2194 - (int)setEffectsVolume:(NSInteger)volume NS_SWIFT_NAME(setEffectsVolume(_:));
2206 - (int)setVolumeOfEffect:(
int)soundId
2207 withVolume:(int)volume NS_SWIFT_NAME(setVolumeOfEffect(_:withVolume:));
2218 - (int)getVolumeOfEffect:(
int)soundId NS_SWIFT_NAME(getVolumeOfEffect(_:));
2227 - (int)pauseEffect:(
int)soundId NS_SWIFT_NAME(pauseEffect(_:));
2234 - (int)pauseAllEffects NS_SWIFT_NAME(pauseAllEffects());
2243 - (int)resumeEffect:(
int)soundId NS_SWIFT_NAME(resumeEffect(_:));
2250 - (int)resumeAllEffects NS_SWIFT_NAME(resumeAllEffects());
2259 - (int)stopEffect:(
int)soundId NS_SWIFT_NAME(stopEffect(_:));
2267 - (int)stopAllEffects NS_SWIFT_NAME(stopAllEffects());
2284 - (int)getEffectDuration:(NSString* _Nonnull)filePath NS_SWIFT_NAME(getEffectDuration(_:));
2300 - (int)setEffectPosition:(
int)soundId pos:(NSInteger)pos NS_SWIFT_NAME(setEffectPosition(_:pos:));
2312 - (int)getEffectCurrentPosition:(
int)soundId NS_SWIFT_NAME(getEffectCurrentPosition(_:));
2321 - (int)unloadEffect:(
int)soundId NS_SWIFT_NAME(unloadEffect(_:));
2329 - (int)unloadAllEffects NS_SWIFT_NAME(unloadAllEffects());
2331 #pragma mark beautifier effect
2408 - (int)setAudioEffectPreset:(AgoraAudioEffectPreset)preset NS_SWIFT_NAME(setAudioEffectPreset(_:));
2525 - (int)setAudioEffectParameters:(AgoraAudioEffectPreset)preset param1:(int)param1 param2:(
int)param2 NS_SWIFT_NAME(setAudioEffectParameters(_:param1:param2:));
2569 - (int)setVoiceBeautifierParameters:(
AgoraVoiceBeautifierPreset)preset param1:(int)param1 param2:(
int)param2 NS_SWIFT_NAME(setVoiceBeautifierParameters(_:param1:param2:));
2583 - (int)setVoiceConversionParameters:(
AgoraVoiceConversionPreset)preset param1:(int)param1 param2:(
int)param2 NS_SWIFT_NAME(setVoiceConversionParameters(_:param1:param2:));
2607 - (int)setHeadphoneEQParameters:(
int)lowGain highGain:(int)highGain NS_SWIFT_NAME(setHeadphoneEQParameters(_:highGain:));
2620 - (int)enableVoiceAITuner:(
bool)enabled type:(
AgoraVoiceAITunerType)type NS_SWIFT_NAME(enableVoiceAITuner(_:type:));
2622 #pragma mark Sound Position Indication
2641 - (int)enableSoundPositionIndication:(BOOL)enabled NS_SWIFT_NAME(enableSoundPositionIndication(_:));
2666 - (int)setRemoteVoicePosition:(NSUInteger)uid pan:(double)pan gain:(
double)gain NS_SWIFT_NAME(setRemoteVoicePosition(_:pan:gain:));
2678 - (int)enableSpatialAudio:(BOOL)enabled NS_SWIFT_NAME(enableSpatialAudio(_:));
2695 - (int)setRemoteUserSpatialAudioParams:(NSUInteger)uid
2696 params:(AgoraSpatialAudioParams* _Nonnull)params NS_SWIFT_NAME(setRemoteUserSpatialAudioParams(_:params:));
2698 #pragma mark Audio Noise Suppression
2709 - (int)setAINSMode:(BOOL)enabled mode:(
AUDIO_AINS_MODE)mode NS_SWIFT_NAME(setAINSMode(_:mode:));
2711 #pragma mark Audio Mixing
2749 - (int)startAudioMixing:(NSString * _Nonnull)filePath
2750 loopback:(BOOL)loopback
2751 cycle:(NSInteger)cycle NS_SWIFT_NAME(startAudioMixing(_:loopback:cycle:));
2785 - (int)startAudioMixing:(NSString * _Nonnull)filePath
2786 loopback:(BOOL)loopback
2787 cycle:(NSInteger)cycle
2788 startPos:(NSInteger)startPos NS_SWIFT_NAME(startAudioMixing(_:loopback:cycle:startPos:));
2799 - (int)stopAudioMixing NS_SWIFT_NAME(stopAudioMixing());
2809 - (int)pauseAudioMixing NS_SWIFT_NAME(pauseAudioMixing());
2820 - (int)resumeAudioMixing NS_SWIFT_NAME(resumeAudioMixing());
2830 - (int)selectAudioTrack:(NSInteger)index NS_SWIFT_NAME(selectAudioTrack(_:));
2852 - (int)adjustAudioMixingVolume:(NSInteger)volume NS_SWIFT_NAME(adjustAudioMixingVolume(_:));
2862 - (int)adjustAudioMixingPublishVolume:(NSInteger)volume NS_SWIFT_NAME(adjustAudioMixingPublishVolume(_:));
2872 - (int)getAudioMixingPublishVolume NS_SWIFT_NAME(getAudioMixingPublishVolume());
2882 - (int)adjustAudioMixingPlayoutVolume:(NSInteger)volume NS_SWIFT_NAME(adjustAudioMixingPlayoutVolume(_:));
2892 - (int)getAudioMixingPlayoutVolume NS_SWIFT_NAME(getAudioMixingPlayoutVolume());
2903 - (int)getAudioMixingDuration NS_SWIFT_NAME(getAudioMixingDuration());
2913 - (int)getAudioMixingCurrentPosition NS_SWIFT_NAME(getAudioMixingCurrentPosition());
2925 - (int)setAudioMixingPosition:(NSInteger)pos NS_SWIFT_NAME(setAudioMixingPosition(_:));
2937 - (int)setAudioMixingDualMonoMode:(AgoraAudioMixingDualMonoMode)mode NS_SWIFT_NAME(setAudioMixingDualMonoMode(_:));
2948 - (int)setAudioMixingPitch:(NSInteger)pitch NS_SWIFT_NAME(setAudioMixingPitch(_:));
2968 - (int)setAudioMixingPlaybackSpeed:(NSInteger)speed NS_SWIFT_NAME(setAudioMixingPlaybackSpeed(_:));
2970 #pragma mark Audio Recording
2992 - (int)startAudioRecording:(NSString * _Nonnull)filePath
2993 quality:(AgoraAudioRecordingQuality)quality NS_SWIFT_NAME(startAudioRecording(_:quality:));
3029 - (int)stopAudioRecording NS_SWIFT_NAME(stopAudioRecording());
3031 #pragma mark Echo Test
3058 - (int)stopEchoTest NS_SWIFT_NAME(stopEchoTest());
3061 #pragma mark Miscellaneous Audio Control
3077 - (int)enableInEarMonitoring:(BOOL)enabled NS_SWIFT_NAME(enable(inEarMonitoring:));
3090 - (int)enableInEarMonitoring:(BOOL)enabled includeAudioFilters:(
AgoraEarMonitoringFilterType)includeAudioFilters NS_SWIFT_NAME(enable(inEarMonitoring:includeAudioFilters:));
3103 - (int)setInEarMonitoringVolume:(NSInteger)volume NS_SWIFT_NAME(setInEarMonitoringVolume(_:));
3105 #if TARGET_OS_IPHONE
3114 - (void)setAudioSessionOperationRestriction:(AgoraAudioSessionOperationRestriction)restriction NS_SWIFT_NAME(setAudioSessionOperationRestriction(_:));
3117 #pragma mark Dual Video Mode
3135 - (int)enableDualStreamMode:(BOOL)enabled NS_SWIFT_NAME(enableDualStreamMode(_:)) __deprecated_msg(
"use setDualStreamMode: instead.");
3155 - (int)enableDualStreamMode:(BOOL)enabled
3156 streamConfig:(
AgoraSimulcastStreamConfig* _Nonnull)streamConfig NS_SWIFT_NAME(enableDualStreamMode(_:streamConfig:)) __deprecated_msg(
"use setDualStreamMode: instead.");
3202 - (int)setSimulcastConfig:(
AgoraSimulcastConfig* _Nonnull)simulcastConfig NS_SWIFT_NAME(setSimulcastConfig(_:));
3214 - (int)setRemoteDefaultVideoStreamType:(
AgoraVideoStreamType)streamType NS_SWIFT_NAME(setRemoteDefaultVideoStreamType(_:));
3235 - (int)setRemoteVideoStream:(NSUInteger)uid
3248 - (int)setRemoteVideoSubscriptionOptions:(NSUInteger)uid
3251 #pragma mark Subscribe Blocklist / Allowlist
3266 - (int)setSubscribeAudioBlocklist:(NSArray <NSNumber *> *_Nonnull)blocklist NS_SWIFT_NAME(setSubscribeAudioBlocklist(_:));
3283 - (int)setSubscribeAudioAllowlist:(NSArray <NSNumber *> *_Nonnull)allowlist NS_SWIFT_NAME(setSubscribeAudioAllowlist(_:));
3298 - (int)setSubscribeVideoBlocklist:(NSArray <NSNumber *> *_Nonnull)blocklist NS_SWIFT_NAME(setSubscribeVideoBlocklist(_:));
3315 - (int)setSubscribeVideoAllowlist:(NSArray <NSNumber *> *_Nonnull)allowlist NS_SWIFT_NAME(setSubscribeVideoAllowlist(_:));
3317 #pragma mark Stream Fallback
3341 - (int)setLocalPublishFallbackOption:(AgoraStreamFallbackOptions)option NS_SWIFT_NAME(setLocalPublishFallbackOption(_:));
3354 - (int)setRemoteSubscribeFallbackOption:(AgoraStreamFallbackOptions)option NS_SWIFT_NAME(setRemoteSubscribeFallbackOption(_:));
3367 - (int)setHighPriorityUserList:(NSArray <NSNumber *> *_Nullable)uidList
3368 option:(AgoraStreamFallbackOptions)option;
3371 #pragma mark External Media Source
3397 - (void)setExternalVideoSource:(BOOL)enable useTexture:(BOOL)useTexture sourceType:(
AgoraExternalVideoSourceType)sourceType NS_SWIFT_NAME(setExternalVideoSource(_:useTexture:sourceType:));
3418 - (void)setExternalVideoSource:(BOOL)enable useTexture:(BOOL)useTexture
3420 encodedVideoTrackOption:(
AgoraEncodedVideoTrackOptions* _Nonnull)encodedVideoTrackOption NS_SWIFT_NAME(setExternalVideoSource(_:useTexture:sourceType:encodedVideoTrackOption:));
3439 - (BOOL)pushExternalVideoFrame:(
AgoraVideoFrame * _Nonnull)frame NS_SWIFT_NAME(pushExternalVideoFrame(_:)) __deprecated_msg(
"use pushExternalVideoFrame:frame,videoTrackId options instead.");
3459 - (BOOL)pushExternalVideoFrame:(
AgoraVideoFrame * _Nonnull)frame videoTrackId:(NSUInteger)videoTrackId NS_SWIFT_NAME(pushExternalVideoFrame(_:videoTrackId:));
3474 - (int)pushExternalEncodedVideoFrame:(NSData* _Nonnull)frame
3491 - (int)pushExternalEncodedVideoFrame:(NSData* _Nonnull)frame
3493 videoTrackId:(NSUInteger)videoTrackId NS_SWIFT_NAME(pushExternalEncodedVideoFrame(_:info:videoTrackId:));
3512 - (
unsigned int)createCustomEncodedVideoTrack:(
AgoraEncodedVideoTrackOptions* _Nonnull)encodedVideoTrackOption NS_SWIFT_NAME(createCustomEncodedVideoTrack(_:));
3522 - (int)destroyCustomVideoTrack:(NSUInteger)videoTrackId NS_SWIFT_NAME(destroyCustomVideoTrack(_:));
3532 - (int)destroyCustomEncodedVideoTrack:(NSUInteger)videoTrackId NS_SWIFT_NAME(destroyCustomEncodedVideoTrack(_:));
3534 #pragma mark External Audio Data
3549 - (void)enableExternalAudioSink:(BOOL)enabled
3550 sampleRate:(NSUInteger)sampleRate
3551 channels:(NSUInteger)channels NS_SWIFT_NAME(enableExternalAudioSink(_:sampleRate:channels:));
3569 - (BOOL)pullPlaybackAudioFrameRawData:(
void * _Nonnull)data
3570 lengthInByte:(NSUInteger)lengthInByte NS_SWIFT_NAME(pullPlaybackAudioFrameRawData(_:lengthInByte:));
3590 - (CMSampleBufferRef _Nullable)pullPlaybackAudioFrameSampleBufferByLengthInByte:(NSUInteger)lengthInByte NS_SWIFT_NAME(pullPlaybackAudioFrameSampleBufferBy(lengthInByte:));
3619 - (int)destroyCustomAudioTrack:(NSInteger)trackId;
3635 - (int)enableCustomAudioLocalPlayback:(NSInteger)trackId enabled:(BOOL)enabled NS_SWIFT_NAME(enableCustomAudioLocalPlayback(_:enabled:));
3648 - (int)pushExternalAudioFrameRawData:(
void * _Nonnull)data
3649 samples:(NSInteger)samples
3650 trackId:(NSInteger)trackId
3651 timestamp:(NSTimeInterval)timestamp NS_SWIFT_NAME(pushExternalAudioFrameRawData(_:samples:trackId:timestamp:)) __deprecated_msg(
"use pushExternalAudioFrameRawData:samples:sampleRate:channels:trackId:timestamp: instead.");
3666 - (int)pushExternalAudioFrameRawData:(
void* _Nonnull)data
3667 samples:(NSInteger)samples
3668 sampleRate:(NSInteger)sampleRate
3669 channels:(NSInteger)channels
3670 trackId:(NSInteger)trackId
3671 timestamp:(NSTimeInterval)timestamp NS_SWIFT_NAME(pushExternalAudioFrameRawData(_:samples:sampleRate:channels:trackId:timestamp:));
3683 - (int)pushExternalAudioFrameSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer NS_SWIFT_NAME(pushExternalAudioFrameSampleBuffer(_:)) __deprecated_msg(
"use pushExternalAudioFrameSampleBuffer:sampleRate:channels:trackId: instead.");
3698 - (int)pushExternalAudioFrameSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer
3699 sampleRate:(NSInteger)sampleRate
3700 channels:(NSInteger)channels
3701 trackId:(NSInteger)trackId NS_SWIFT_NAME(pushExternalAudioFrameSampleBuffer(_:sampleRate:channels:trackId:));
3726 - (int)setRecordingAudioFrameParametersWithSampleRate:(NSInteger)sampleRate
3727 channel:(NSInteger)channel
3729 samplesPerCall:(NSInteger)samplesPerCall NS_SWIFT_NAME(setRecordingAudioFrameParametersWithSampleRate(_:channel:mode:samplesPerCall:));
3755 - (int)setPlaybackAudioFrameParametersWithSampleRate:(NSInteger)sampleRate
3756 channel:(NSInteger)channel
3758 samplesPerCall:(NSInteger)samplesPerCall NS_SWIFT_NAME(setPlaybackAudioFrameParametersWithSampleRate(_:channel:mode:samplesPerCall:));
3777 - (int)setMixedAudioFrameParametersWithSampleRate:(NSInteger)sampleRate
3778 channel:(NSInteger)channel
3779 samplesPerCall:(NSInteger)samplesPerCall NS_SWIFT_NAME(setMixedAudioFrameParametersWithSampleRate(_:channel:samplesPerCall:));
3805 - (int)setEarMonitoringAudioFrameParametersWithSampleRate:(NSInteger)sampleRate
3806 channel:(NSInteger)channel
3808 samplesPerCall:(NSInteger)samplesPerCall NS_SWIFT_NAME(setEarMonitoringAudioFrameParametersWithSampleRate(_:channel:mode:samplesPerCall:));
3823 - (int)setPlaybackAudioFrameBeforeMixingParametersWithSampleRate:(NSInteger)sampleRate
3824 channel:(NSInteger)channel NS_SWIFT_NAME(setPlaybackAudioFrameBeforeMixingParametersWithSampleRate(_:channel:));
3835 - (int)adjustCustomAudioPublishVolume:(NSInteger)trackId volume:(NSInteger)volume NS_SWIFT_NAME(adjustCustomAudioPublishVolume(_:volume:));
3846 - (int)adjustCustomAudioPlayoutVolume:(NSInteger)trackId volume:(NSInteger)volume NS_SWIFT_NAME(adjustCustomAudioPlayoutVolume(_:volume:));
3873 #pragma mark Audio spectrum monitor
3887 - (int)registerAudioSpectrumDelegate:(id<AgoraAudioSpectrumDelegate> _Nullable )
delegate NS_SWIFT_NAME(registerAudioSpectrumDelegate(_:));
3897 - (int)unregisterAudioSpectrumDelegate:(id<AgoraAudioSpectrumDelegate> _Nullable)
delegate NS_SWIFT_NAME(unregisterAudioSpectrumDelegate(_:));
3909 - (int)enableAudioSpectrumMonitor:(
int)intervalInMS NS_SWIFT_NAME(enableAudioSpectrumMonitor(_:));
3920 #pragma mark Built-in Encryption
3951 - (int)enableEncryption:(
bool)enabled encryptionConfig:(
AgoraEncryptionConfig * _Nonnull)config NS_SWIFT_NAME(enableEncryption(_:encryptionConfig:));
3953 #pragma mark Data Stream
3978 - (int)createDataStream:(NSInteger * _Nonnull)streamId
3979 reliable:(BOOL)reliable
3980 ordered:(BOOL)ordered NS_SWIFT_NAME(createDataStream(_:reliable:ordered:));
3991 - (int)createDataStream:(NSInteger * _Nonnull)streamId
4017 - (int)sendStreamMessage:(NSInteger)streamId
4018 data:(NSData * _Nonnull)data NS_SWIFT_NAME(sendStreamMessage(_:data:));
4020 #pragma mark Stream Publish
4039 - (int)startRtmpStreamWithoutTranscoding:(NSString* _Nonnull)url NS_SWIFT_NAME(startRtmpStreamWithoutTranscoding(_:));
4053 - (int)startRtmpStreamWithTranscoding:(NSString* _Nonnull)url transcoding:(AgoraLiveTranscoding* _Nullable)transcoding NS_SWIFT_NAME(startRtmpStream(withTranscoding:transcoding:));
4071 - (int)updateRtmpTranscoding:(AgoraLiveTranscoding* _Nullable)transcoding NS_SWIFT_NAME(updateRtmpTranscoding(_:));
4090 - (int)stopRtmpStream:(NSString* _Nonnull)url NS_SWIFT_NAME(stopRtmpStream(_:));
4092 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
4093 #pragma mark Screen Capture
4108 - (int)startScreenCapture:(
AgoraVideoSourceType)sourceType config:(AgoraScreenCaptureConfiguration * _Nullable)config NS_SWIFT_NAME(startScreenCapture(_:config:));
4140 - (int)startScreenCaptureByDisplayId:(UInt32)displayId
4141 regionRect:(CGRect)regionRect
4142 captureParams:(
AgoraScreenCaptureParameters *_Nonnull)captureParams NS_SWIFT_NAME(startScreenCapture(byDisplayId:regionRect:captureParams:));
4163 - (int)startScreenCaptureByWindowId:(UInt32)windowId
4164 regionRect:(CGRect)regionRect
4165 captureParams:(
AgoraScreenCaptureParameters *_Nonnull)captureParams NS_SWIFT_NAME(startScreenCapture(byWindowId:regionRect:captureParams:));
4176 - (int)updateScreenCaptureRegion:(CGRect)rect NS_SWIFT_NAME(updateScreenCaptureRegion(_:));
4187 - (int)updateScreenCaptureParameters:(
AgoraScreenCaptureParameters * _Nonnull)captureParams NS_SWIFT_NAME(updateScreenCaptureParameters(_:));
4219 - (NSArray<AgoraScreenCaptureSourceInfo*>* _Nullable)getScreenCaptureSourcesWithThumbSize:(NSSize)thumbSize iconSize:(NSSize)iconSize includeScreen:(BOOL)includeScreen NS_SWIFT_NAME(getScreenCaptureSources(withThumbSize:iconSize:includeScreen:));
4232 - (int)setScreenCaptureScenario:(
AgoraScreenScenarioType)scenarioType NS_SWIFT_NAME(setScreenCaptureScenario(_:));
4243 #if TARGET_OS_IPHONE
4291 #pragma mark Camera Control
4304 - (BOOL)isCameraZoomSupported NS_SWIFT_NAME(isCameraZoomSupported());
4320 - (CGFloat)setCameraZoomFactor:(CGFloat)zoomFactor NS_SWIFT_NAME(setCameraZoomFactor(_:));
4329 - (BOOL)isCameraFocusPositionInPreviewSupported NS_SWIFT_NAME(isCameraFocusPositionInPreviewSupported());
4338 - (BOOL)setCameraFocusPositionInPreview:(CGPoint)position NS_SWIFT_NAME(setCameraFocusPositionInPreview(_:));
4347 - (BOOL)isCameraExposurePositionSupported NS_SWIFT_NAME(isCameraExposurePositionSupported());
4356 - (BOOL)setCameraExposurePosition:(CGPoint)positionInView NS_SWIFT_NAME(setCameraExposurePosition(_:));
4366 - (BOOL)isCameraExposureSupported NS_SWIFT_NAME(isCameraExposureSupported());
4375 - (CGFloat)setCameraExposureFactor:(CGFloat)exposureFactor NS_SWIFT_NAME(setCameraExposureFactor(_:));
4397 - (BOOL)isCameraTorchSupported NS_SWIFT_NAME(isCameraTorchSupported());
4415 - (BOOL)setCameraTorchOn:(BOOL)isOn NS_SWIFT_NAME(setCameraTorchOn(_:));
4424 - (BOOL)isCameraAutoFocusFaceModeSupported NS_SWIFT_NAME(isCameraAutoFocusFaceModeSupported());
4437 - (BOOL)setCameraAutoFocusFaceModeEnabled:(BOOL)enable NS_SWIFT_NAME(setCameraAutoFocusFaceModeEnabled(_:));
4446 - (BOOL)isCameraAutoExposureFaceModeSupported NS_SWIFT_NAME(isCameraAutoExposureFaceModeSupported());
4459 - (BOOL)setCameraAutoExposureFaceModeEnabled:(BOOL)enable NS_SWIFT_NAME(setCameraAutoExposureFaceModeEnabled(_:));
4497 - (BOOL)isCameraCenterStageSupported NS_SWIFT_NAME(isCameraCenterStageSupported());
4507 - (int)enableCameraCenterStage:(BOOL)enabled NS_SWIFT_NAME(enableCameraCenterStage(_:));
4540 - (int)stopCameraCapture:(
AgoraVideoSourceType)sourceType NS_SWIFT_NAME(stopCameraCapture(_:));
4542 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
4543 #pragma mark macOS Device
4557 - (void)monitorDeviceChange:(BOOL)enabled NS_SWIFT_NAME(monitorDeviceChange(_:));
4571 - (NSArray<AgoraRtcDeviceInfo *> * _Nullable)enumerateDevices:(AgoraMediaDeviceType)type NS_SWIFT_NAME(enumerateDevices(_:));
4580 - (AgoraRtcDeviceInfo * _Nullable)getDeviceInfo:(AgoraMediaDeviceType)type NS_SWIFT_NAME(getDeviceInfo(_:));
4591 - (int)setDevice:(AgoraMediaDeviceType)type deviceId:(NSString * _Nonnull)deviceId NS_SWIFT_NAME(setDevice(_:deviceId:));
4599 - (AgoraRtcDeviceInfo* _Nullable)getDefaultAudioDevice:(AgoraMediaDeviceType)type NS_SWIFT_NAME(getDefaultAudioDevice(_:));
4609 - (int)getDeviceVolume:(AgoraMediaDeviceType)type NS_SWIFT_NAME(getDeviceVolume(_:));
4620 - (int)setDeviceVolume:(AgoraMediaDeviceType)type volume:(int)volume NS_SWIFT_NAME(setDeviceVolume(_:volume:));
4635 - (int)startAudioDeviceLoopbackTest:(
int)indicationInterval NS_SWIFT_NAME(startAudioDeviceLoopbackTest(_:));
4644 - (int)stopAudioDeviceLoopbackTest NS_SWIFT_NAME(stopAudioDeviceLoopbackTest());
4657 - (int)followSystemPlaybackDevice:(BOOL)enable NS_SWIFT_NAME(followSystemPlaybackDevice(_:));
4670 - (int)followSystemRecordingDevice:(BOOL)enable NS_SWIFT_NAME(followSystemRecordingDevice(_:));
4680 - (int)startCaptureDeviceTest:(NSView * _Nonnull)view NS_SWIFT_NAME(startCaptureDeviceTest(_:));
4688 - (int)stopCaptureDeviceTest NS_SWIFT_NAME(stopCaptureDeviceTest());
4691 #pragma mark Face Detection
4693 #if TARGET_OS_IPHONE
4717 - (int)enableFaceDetection:(
bool)enable NS_SWIFT_NAME(enableFaceDetection(_:));
4720 #pragma mark Watermark
4733 - (int)addVideoWatermark:(AgoraImage * _Nonnull)watermark NS_SWIFT_NAME(addVideoWatermark(_:)) __deprecated_msg(
"use addVideoWatermark:url options instead.");
4760 - (int)addVideoWatermark:(NSURL* _Nonnull)url options:(
WatermarkOptions* _Nonnull)options NS_SWIFT_NAME(addVideoWatermark(_:options:));
4766 - (int)clearVideoWatermarks NS_SWIFT_NAME(clearVideoWatermarks());
4768 #pragma mark String UID
4801 - (int)registerLocalUserAccount:(NSString* _Nonnull)userAccount appId:(NSString* _Nonnull)appId NS_SWIFT_NAME(registerLocalUserAccount(_:appId:));
4837 - (int)joinChannelByToken:(NSString * _Nullable)token
4838 channelId:(NSString * _Nonnull)channelId
4839 userAccount:(NSString * _Nonnull)userAccount
4840 joinSuccess:(void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannel(byToken:channelId:userAccount:joinSuccess:));
4877 - (int)joinChannelByToken:(NSString * _Nullable)token
4878 channelId:(NSString * _Nonnull)channelId
4879 userAccount:(NSString * _Nonnull)userAccount
4881 joinSuccess:(
void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannel(byToken:channelId:userAccount:mediaOptions:joinSuccess:));
4893 - (
AgoraUserInfo* _Nullable)getUserInfoByUserAccount:(NSString* _Nonnull)userAccount withError:(AgoraErrorCode* _Nullable)error NS_SWIFT_NAME(getUserInfo(byUserAccount:withError:));
4905 - (
AgoraUserInfo* _Nullable)getUserInfoByUid:(NSUInteger)uid withError:(AgoraErrorCode* _Nullable)error NS_SWIFT_NAME(getUserInfo(byUid:withError:));
4907 #pragma mark Custom Audio PCM Frame
4914 - (BOOL)setAudioFrameDelegate:(id<AgoraAudioFrameDelegate> _Nullable)
delegate NS_SWIFT_NAME(setAudioFrameDelegate(_:));
4916 #pragma mark Custom Video Frame
4928 - (BOOL)setVideoFrameDelegate:(id<AgoraVideoFrameDelegate> _Nullable)
delegate NS_SWIFT_NAME(setVideoFrameDelegate(_:));
4930 #pragma mark Encoded Video Frame
4942 - (BOOL)setEncodedVideoFrameDelegate:(id<AgoraEncodedVideoFrameDelegate> _Nullable)
delegate NS_SWIFT_NAME(setEncodedVideoFrameDelegate(_:));
4944 #pragma mark Custom Face Info
4952 - (BOOL)setFaceInfoDelegate:(id<AgoraFaceInfoDelegate> _Nullable)
delegate NS_SWIFT_NAME(setFaceInfoDelegate(_:));
4954 #pragma mark Custom Media Metadata
4977 - (BOOL)setMediaMetadataDataSource:(id<AgoraMediaMetadataDataSource> _Nullable)metadataDataSource withType:(
AgoraMetadataType)type NS_SWIFT_NAME(setMediaMetadataDataSource(_:with:));
4994 - (BOOL)setMediaMetadataDelegate:(id<AgoraMediaMetadataDelegate> _Nullable)metadataDelegate withType:(
AgoraMetadataType)type NS_SWIFT_NAME(setMediaMetadataDelegate(_:with:));
4996 #pragma mark Miscellaneous Methods
5014 + (NSString* _Nonnull)getErrorDescription:(NSInteger)error NS_SWIFT_NAME(getErrorDescription(_:));
5020 - (
void * _Nullable)getNativeHandle NS_SWIFT_NAME(getNativeHandle());
5045 - (int)setLogFile:(NSString * _Nonnull)filePath NS_SWIFT_NAME(setLogFile(_:));
5061 - (int)setLogFilter:(NSUInteger)filter NS_SWIFT_NAME(setLogFilter(_:));
5077 - (int)setLogFileSize:(NSUInteger)fileSizeInKBytes NS_SWIFT_NAME(setLogFileSize(_:));
5098 - (int)writeLog:(
AgoraLogLevel)level content:(NSString * _Nonnull)content NS_SWIFT_NAME(writeLog(_:content:));
5132 - (int)rate:(NSString * _Nonnull)callId
5133 rating:(NSInteger)rating
5134 description:(NSString * _Nullable)description NS_SWIFT_NAME(rate(_:rating:description:));
5153 - (int)complain:(NSString * _Nonnull)callId
5154 description:(NSString * _Nullable)description NS_SWIFT_NAME(complain(_:description:));
5166 - (int)enableMainQueueDispatch:(BOOL)enabled NS_SWIFT_NAME(enableMainQueueDispatch(_:));
5188 - (int)startLastmileProbeTest:(
AgoraLastmileProbeConfig *_Nullable)config NS_SWIFT_NAME(startLastmileProbeTest(_:));
5205 - (int)setParameters:(NSString * _Nonnull)options NS_SWIFT_NAME(setParameters(_:));
5212 - (NSString * _Nullable)getParameter:(NSString * _Nonnull)parameter
5213 args:(NSString * _Nullable)args NS_SWIFT_NAME(getParameter(_:args:));
5220 #pragma mark MediaPlayer
5230 - (id<AgoraRtcMediaPlayerProtocol>_Nullable)createMediaPlayerWithDelegate:(id<AgoraRtcMediaPlayerDelegate>_Nullable)
delegate NS_SWIFT_NAME(createMediaPlayer(with:));
5249 - (int)destroyMediaPlayer:(id<AgoraRtcMediaPlayerProtocol>_Nullable)mediaPlayer NS_SWIFT_NAME(destroyMediaPlayer(_:));
5256 - (id<AgoraRtcMediaPlayerProtocol> _Nullable)getMediaPlayer:(
int)mediaPlayerId NS_SWIFT_NAME(getMediaPlayer(_:));
5258 #pragma mark rhythm player
5270 - (int)startRhythmPlayer:(NSString * _Nonnull)sound1 sound2:(NSString * _Nonnull)sound2 config:(
AgoraRhythmPlayerConfig * _Nullable)config NS_SWIFT_NAME(startRhythmPlayer(_:sound2:config:));
5290 #pragma mark Streaming Kit
5303 - (int)setDirectCdnStreamingAudioConfiguration:(
AgoraAudioProfile)profile NS_SWIFT_NAME(setDirectCdnStreamingAudioConfiguration(_:));
5319 - (int)setDirectCdnStreamingVideoConfiguration:(AgoraVideoEncoderConfiguration * _Nonnull)config NS_SWIFT_NAME(setDirectCdnStreamingVideoConfiguration(_:));
5334 - (int)startDirectCdnStreaming:(id<AgoraDirectCdnStreamingEventDelegate> _Nonnull)
delegate
5335 publishUrl:(NSString * _Nonnull)publishUrl
5367 - (int)setAdvancedAudioOptions:(
AgoraAdvancedAudioOptions * _Nonnull)options NS_SWIFT_NAME(setAdvancedAudioOptions(_:));
5378 - (int)sendCustomReportMessage:(NSString * _Nullable)messageId
5379 category:(NSString * _Nullable)category
5380 event:(NSString * _Nullable)
event
5381 label:(NSString * _Nullable)label
5382 value:(NSInteger)value NS_SWIFT_NAME(sendCustomReportMessage(_:category:event:label:value:));
5399 - (int)setLogLevel:(
AgoraLogLevel)level NS_SWIFT_NAME(setLogLevel(_:));
5449 - (NSInteger)takeSnapshot:(NSInteger)uid filePath:(NSString* _Nonnull)filePath NS_SWIFT_NAME(takeSnapshot(_:filePath:));
5451 - (int)enableContentInspect:(BOOL)enabled config:(
AgoraContentInspectConfig* _Nonnull)config NS_SWIFT_NAME(enableContentInspect(_:config:));
5463 - (int)setAVSyncSource:(NSString* _Nonnull)channelId uid:(NSUInteger)uid NS_SWIFT_NAME(setAVSyncSource(_:uid:));
5474 - (int)sendAudioMetadata:(NSData * _Nonnull)metadata NS_SWIFT_NAME(sendAudioMetadata(_:));
5481 - (int)enableVideoImageSource:(BOOL)enable
5519 #pragma mark Channel Transcoder
5527 #pragma mark Deprecated Methods
5532 - (int)setLocalVideoMirrorMode:(AgoraVideoMirrorMode)mode NS_SWIFT_NAME(setLocalVideoMirrorMode(_:))
__deprecated;
5544 - (int)enableWebSdkInteroperability:(BOOL)enabled NS_SWIFT_NAME(enableWebSdkInteroperability(_:))
__deprecated;
5557 - (void)audioVolumeIndicationBlock:(
void(^ _Nullable)(NSArray * _Nonnull speakers, NSInteger totalVolume))audioVolumeIndicationBlock NS_SWIFT_NAME(audioVolumeIndicationBlock(_:)) __deprecated_msg(
"use delegate instead.");
5567 - (void)firstLocalVideoFrameBlock:(
void(^ _Nullable)(NSInteger width, NSInteger height, NSInteger elapsed))firstLocalVideoFrameBlock NS_SWIFT_NAME(firstLocalVideoFrameBlock(_:)) __deprecated_msg(
"use delegate instead.");
5579 - (void)firstRemoteVideoDecodedBlock:(
void(^ _Nullable)(NSUInteger uid, NSInteger width, NSInteger height, NSInteger elapsed))firstRemoteVideoDecodedBlock NS_SWIFT_NAME(firstRemoteVideoDecodedBlock(_:)) __deprecated_msg(
"use delegate instead.");
5590 - (void)firstRemoteVideoFrameBlock:(
void(^ _Nullable)(NSUInteger uid, NSInteger width, NSInteger height, NSInteger elapsed))firstRemoteVideoFrameBlock NS_SWIFT_NAME(firstRemoteVideoFrameBlock(_:)) __deprecated_msg(
"use delegate instead.");
5601 - (void)userJoinedBlock:(
void(^ _Nullable)(NSUInteger uid, NSInteger elapsed))userJoinedBlock NS_SWIFT_NAME(userJoinedBlock(_:)) __deprecated_msg(
"use delegate instead.");
5611 - (void)userOfflineBlock:(
void(^ _Nullable)(NSUInteger uid))userOfflineBlock NS_SWIFT_NAME(userOfflineBlock(_:)) __deprecated_msg(
"use delegate instead.");
5622 - (void)userMuteAudioBlock:(
void(^ _Nullable)(NSUInteger uid, BOOL muted))userMuteAudioBlock NS_SWIFT_NAME(userMuteAudioBlock(_:)) __deprecated_msg(
"use delegate instead.");
5638 - (void)userMuteVideoBlock:(
void(^ _Nullable)(NSUInteger uid, BOOL muted))userMuteVideoBlock NS_SWIFT_NAME(userMuteVideoBlock(_:)) __deprecated_msg(
"use delegate instead.");
5647 - (void)localVideoStatBlock:(
void(^ _Nullable)(NSInteger sentBitrate, NSInteger sentFrameRate))localVideoStatBlock NS_SWIFT_NAME(localVideoStatBlock(_:)) __deprecated_msg(
"use delegate instead.");
5658 - (void)remoteVideoStatBlock:(
void(^ _Nullable)(NSUInteger uid, NSInteger delay, NSInteger receivedBitrate, NSInteger receivedFrameRate))remoteVideoStatBlock NS_SWIFT_NAME(remoteVideoStatBlock(_:)) __deprecated_msg(
"use delegate instead.");
5663 - (void)cameraReadyBlock:(
void(^ _Nullable)(void))cameraReadyBlock NS_SWIFT_NAME(cameraReadyBlock(_:)) __deprecated_msg(
"use delegate instead.");
5668 - (void)connectionLostBlock:(
void(^ _Nullable)(void))connectionLostBlock NS_SWIFT_NAME(connectionLostBlock(_:)) __deprecated_msg(
"use delegate instead.");
5680 - (void)rejoinChannelSuccessBlock:(
void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))rejoinChannelSuccessBlock NS_SWIFT_NAME(rejoinChannelSuccessBlock(_:)) __deprecated_msg(
"use delegate instead.");
5688 - (void)rtcStatsBlock:(
void(^ _Nullable)(
AgoraChannelStats * _Nonnull stat))rtcStatsBlock NS_SWIFT_NAME(rtcStatsBlock(_:)) __deprecated_msg(
"use delegate instead.");
5699 - (void)audioQualityBlock:(
void(^ _Nullable)(NSUInteger uid,
AgoraNetworkQuality quality, NSUInteger delay, NSUInteger lost))audioQualityBlock NS_SWIFT_NAME(audioQualityBlock(_:)) __deprecated_msg(
"use delegate instead.");
5709 - (void)networkQualityBlock:(
void(^ _Nullable)(NSUInteger uid,
AgoraNetworkQuality txQuality,
AgoraNetworkQuality rxQuality))networkQualityBlock NS_SWIFT_NAME(networkQualityBlock(_:)) __deprecated_msg(
"use delegate instead.");
5717 - (void)lastmileQualityBlock:(
void(^ _Nullable)(
AgoraNetworkQuality quality))lastmileQualityBlock NS_SWIFT_NAME(lastmileQualityBlock(_:)) __deprecated_msg(
"use delegate instead.");
5722 - (void)mediaEngineEventBlock:(
void(^ _Nullable)(NSInteger code))mediaEngineEventBlock NS_SWIFT_NAME(mediaEngineEventBlock(_:)) __deprecated_msg(
"use delegate instead.");
5733 - (int)pauseAudio __deprecated_msg(
"use disableAudio instead.");
5744 - (int)resumeAudio __deprecated_msg(
"use enableAudio instead.");
5752 + (instancetype _Nonnull)sharedEngineWithAppId:(NSString * _Nonnull)AppId
5753 error:(void(^ _Nullable)(AgoraErrorCode errorCode))errorBlock NS_SWIFT_NAME(sharedEngine(withAppId:error:)) __deprecated_msg(
"use sharedEngineWithAppId:delegate: instead.");
5760 - (int)setHighQualityAudioParametersWithFullband:(BOOL)fullband
5762 fullBitrate:(BOOL)fullBitrate NS_SWIFT_NAME(setHighQualityAudioParametersWithFullband(_:stereo:fullBitrate:)) __deprecated_msg(
"use setAudioProfile:scenario: instead.");
5783 - (int)setAudioProfile:(
AgoraAudioProfile)profile scenario:(
AgoraAudioScenario)scenario NS_SWIFT_NAME(setAudioProfile(_:scenario:)) __deprecated_msg(
"use setAudioProfile: instead.");
5791 - (NSString * _Nullable)getDeviceId:(AgoraMediaDeviceType)type NS_SWIFT_NAME(getDeviceId(_:)) __deprecated_msg(
"use getDeviceInfo: instead.");
5813 - (int)setExternalAudioSource:(BOOL)enabled
5814 sampleRate:(NSInteger)sampleRate
5815 channels:(NSInteger)channels NS_SWIFT_NAME(setExternalAudioSource(_:sampleRate:channels:)) __deprecated_msg(
"use createCustomAudioTrack:config: instead.");
5843 - (int)setExternalAudioSource:(BOOL)enabled
5844 sampleRate:(NSInteger)sampleRate
5845 channels:(NSInteger)channels
5846 localPlayback:(BOOL)localPlayback
5847 publish:(BOOL)publish NS_SWIFT_NAME(setExternalAudioSource(_:sampleRate:channels:localPlayback:publish:)) __deprecated_msg(
"use createCustomAudioTrack:config: instead.");
5849 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
5859 - (int)setSpeakerphoneVolume:(NSUInteger)volume NS_SWIFT_NAME(setSpeakerphoneVolume(_:)) __deprecated_msg(
"use setDeviceVolume:volume: instead.");
5861 - (int)startScreenCapture:(NSUInteger)windowId
5862 withCaptureFreq:(NSInteger)captureFreq
5863 bitRate:(NSInteger)bitRate
5864 andRect:(CGRect)rect NS_SWIFT_NAME(startScreenCapture(_:withCaptureFreq:bitRate:andRect:)) __deprecated_msg(
"use startScreenCaptureByWindowId:regionRect:captureParams: instead.");
5872 + (NSString * _Nonnull)getMediaEngineVersion NS_SWIFT_NAME(getMediaEngineVersion())
__deprecated;
5893 - (int)setVideoResolution:(CGSize)size andFrameRate:(NSInteger)frameRate bitrate:(NSInteger)bitrate NS_SWIFT_NAME(setVideoResolution(_:andFrameRate:bitrate:)) __deprecated_msg(
"use setVideoEncoderConfiguration: instead.");
5903 - (void)leaveChannelBlock:(
void(^ _Nullable)(
AgoraChannelStats * _Nonnull stat))leaveChannelBlock NS_SWIFT_NAME(leaveChannelBlock(_:)) __deprecated_msg(
"use delegate instead.");
5908 - (int)setLocalRenderMode:(NSUInteger)uid
5921 - (int)enableExternalAudioSourceLocalPlayback:(BOOL)enable NS_SWIFT_NAME(enableExternalAudioSourceLocalPlayback(_:))
__deprecated;;
5923 - (int)startMultipleVideoStreams:(
VIEW_CLASS * _Nonnull)view screen:(
VIEW_CLASS * _Nonnull)screenView remotes:(NSArray * _Nullable)remoteViews NS_SWIFT_NAME(startMultipleVideoStreams(_:screen:remotes:))
__deprecated;;
5930 - (void)addDelegate:(id<AgoraRtcEngineDelegate> _Nonnull)
delegate NS_SWIFT_NAME(addDelegate(_:));
5937 - (void)removeDelegate:(id<AgoraRtcEngineDelegate> _Nonnull)
delegate NS_SWIFT_NAME(removeDelegate(_:));