Agora RTC Objective-C API Reference  Refactor
AgoraRtcEngineKit.h
Go to the documentation of this file.
1 //
2 // AgoraRtcEngineKit.h
3 // AgoraRtcEngineKit
4 //
5 // Copyright (c) 2018 Agora. All rights reserved.
6 //
7 
8 #import <Foundation/Foundation.h>
9 #import "AgoraConstants.h"
10 #import "AgoraObjects.h"
26 #import "AgoraMediaRecorder.h"
28 
29 @protocol AgoraAudioTrackObserver <NSObject>
30 @optional
32 - (void)onAudioTrackVolumeIndication:(NSUInteger)trackId
33  volumeInfo:(AgoraAudioTrackVolumeInfo * _Nonnull)volumeInfo
34  NS_SWIFT_NAME(onAudioTrackVolumeIndication(_:volumeInfo:));
35 @end
36 
42 #pragma mark - AgoraRtcEngineKit
43 
56 __attribute__((visibility("default"))) @interface AgoraRtcEngineKit : NSObject
57 
58 #pragma mark Core Methods
59 
67 @property(nonatomic, weak) id<AgoraRtcEngineDelegate> _Nullable delegate;
68 
96 + (instancetype _Nonnull)sharedEngineWithAppId:(NSString * _Nonnull)appId
97  delegate:(id<AgoraRtcEngineDelegate> _Nullable)delegate NS_SWIFT_NAME(sharedEngine(withAppId:delegate:));
98 
124 + (instancetype _Nonnull)sharedEngineWithConfig:(AgoraRtcEngineConfig * _Nonnull)config
125  delegate:(id<AgoraRtcEngineDelegate> _Nullable)delegate NS_SWIFT_NAME(sharedEngine(with:delegate:));
126 
184 - (int)preloadChannelByToken:(NSString * _Nullable)token
185  channelId:(NSString * _Nonnull)channelId
186  uid:(NSUInteger)uid NS_SWIFT_NAME(preloadChannel(byToken:channelId:uid:));
187 
252 - (int)preloadChannelByTokenWithUserAccount:(NSString * _Nullable)token
253  channelId:(NSString * _Nonnull)channelId
254  userAccount:(NSString * _Nonnull)userAccount NS_SWIFT_NAME(preloadChannelWithUserAccount(byToken:channelId:userAccount:));
255 
277 - (int)updatePreloadChannelToken:(NSString * _Nonnull)token NS_SWIFT_NAME(updatePreloadChannelToken(_:));
278 
358 - (int)joinChannelByToken:(NSString * _Nullable)token
359  channelId:(NSString * _Nonnull)channelId
360  info:(NSString * _Nullable)info
361  uid:(NSUInteger)uid
362  joinSuccess:(void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannel(byToken:channelId:info:uid:joinSuccess:));
363 
446 - (int)joinChannelByToken:(NSString * _Nullable)token
447  channelId:(NSString * _Nonnull)channelId
448  uid:(NSUInteger)uid
449  mediaOptions:(AgoraRtcChannelMediaOptions * _Nonnull)mediaOptions
450  joinSuccess:(void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannel(byToken:channelId:uid:mediaOptions:joinSuccess:));
451 
484 - (int)leaveChannel:(void(^ _Nullable)(AgoraChannelStats * _Nonnull stat))leaveChannelBlock NS_SWIFT_NAME(leaveChannel(_:));
485 
516 - (int)leaveChannel:(AgoraLeaveChannelOptions * _Nonnull)options
517 leaveChannelBlock:(void (^ _Nullable)(AgoraChannelStats * _Nonnull))leaveChannelBlock NS_SWIFT_NAME(leaveChannel(_:leaveChannelBlock:));
518 
543 - (int)setChannelProfile:(AgoraChannelProfile)profile NS_SWIFT_NAME(setChannelProfile(_:));
544 
565 - (int)updateChannelWithMediaOptions:(AgoraRtcChannelMediaOptions* _Nonnull)mediaOptions NS_SWIFT_NAME(updateChannel(with:));
566 
611 - (int)setClientRole:(AgoraClientRole)role NS_SWIFT_NAME(setClientRole(_:));
612 
666 - (int)setClientRole:(AgoraClientRole)role options:(AgoraClientRoleOptions * _Nullable)options NS_SWIFT_NAME(setClientRole(_:options:));
667 
696 - (int)renewToken:(NSString * _Nonnull)token NS_SWIFT_NAME(renewToken(_:));
697 
708 
745 - (int)startOrUpdateChannelMediaRelay:(AgoraChannelMediaRelayConfiguration * _Nonnull)config NS_SWIFT_NAME(startOrUpdateChannelMediaRelay(_:));
746 
769 - (int)stopChannelMediaRelay NS_SWIFT_NAME(stopChannelMediaRelay());
770 
787 
803 
857 - (int)startLocalVideoTranscoder:(AgoraLocalTranscoderConfiguration* _Nonnull)config NS_SWIFT_NAME(startLocalVideoTranscoder(_:));
858 
877 - (int)updateLocalTranscoderConfiguration:(AgoraLocalTranscoderConfiguration* _Nonnull)config NS_SWIFT_NAME(updateLocalTranscoderConfiguration(_:));
878 
890 - (int)stopLocalVideoTranscoder NS_SWIFT_NAME(stopLocalVideoTranscoder());
891 
925 - (int)startLocalAudioMixer:(AgoraLocalAudioMixerConfiguration* _Nonnull)config NS_SWIFT_NAME(startLocalAudioMixer(_:));
926 
947 - (int)updateLocalAudioMixerConfiguration:(AgoraLocalAudioMixerConfiguration* _Nonnull)config NS_SWIFT_NAME(updateLocalAudioMixerConfiguration(_:));
948 
963 - (int)stopLocalAudioMixer NS_SWIFT_NAME(stopLocalAudioMixer());
964 
995 
1020 
1037 + (void)destroy NS_SWIFT_NAME(destroy());
1038 
1059 + (void)destroy:(void (^ _Nullable)(void))engineReleasedBlock NS_SWIFT_NAME(destroy(_:));
1060 
1061 #pragma mark Core Audio
1062 
1087 - (int)enableAudio NS_SWIFT_NAME(enableAudio());
1088 
1110 - (int)disableAudio NS_SWIFT_NAME(disableAudio());
1111 
1142 - (int)enableLocalAudio:(BOOL)enabled NS_SWIFT_NAME(enableLocalAudio(_:));
1143 
1162 - (int)setAudioProfile:(AgoraAudioProfile)profile NS_SWIFT_NAME(setAudioProfile(_:));
1163 
1185 - (int)setAudioScenario:(AgoraAudioScenario)scenario NS_SWIFT_NAME(setAudioScenario(_:));
1186 
1222 - (int)enableAudioVolumeIndication:(NSInteger)interval
1223  smooth:(NSInteger)smooth
1224  reportVad:(BOOL)reportVad NS_SWIFT_NAME(enableAudioVolumeIndication(_:smooth:reportVad:));
1225 
1226 
1227 #if TARGET_OS_IPHONE
1228 
1255 - (int)setEnableSpeakerphone:(BOOL)enableSpeaker NS_SWIFT_NAME(setEnableSpeakerphone(_:));
1256 
1268 - (BOOL)isSpeakerphoneEnabled NS_SWIFT_NAME(isSpeakerphoneEnabled());
1269 
1302 - (int)setDefaultAudioRouteToSpeakerphone:(BOOL)defaultToSpeaker NS_SWIFT_NAME(setDefaultAudioRouteToSpeakerphone(_:));
1303 #endif
1304 
1322 - (int)adjustRecordingSignalVolume:(NSInteger)volume NS_SWIFT_NAME(adjustRecordingSignalVolume(_:));
1323 
1342 - (int)adjustPlaybackSignalVolume:(NSInteger)volume NS_SWIFT_NAME(adjustPlaybackSignalVolume(_:));
1343 
1363 - (int)adjustUserPlaybackSignalVolume:(NSUInteger)uid volume:(int)volume NS_SWIFT_NAME(adjustUserPlaybackSignalVolume(_:volume:));
1364 
1384 - (int)muteRecordingSignal:(BOOL)muted NS_SWIFT_NAME(muteRecordingSignal(_:));
1385 
1407 - (int)muteLocalAudioStream:(BOOL)mute NS_SWIFT_NAME(muteLocalAudioStream(_:));
1408 
1426 - (int)muteRemoteAudioStream:(NSUInteger)uid mute:(BOOL)mute NS_SWIFT_NAME(muteRemoteAudioStream(_:mute:));
1427 
1452 - (int)muteAllRemoteAudioStreams:(BOOL)mute NS_SWIFT_NAME(muteAllRemoteAudioStreams(_:));
1453 
1480 - (int)startRecordingDeviceTest:(int)indicationInterval NS_SWIFT_NAME(startRecordingDeviceTest(_:));
1481 
1495 - (int)stopRecordingDeviceTest NS_SWIFT_NAME(stopRecordingDeviceTest());
1496 
1522 - (int)startPlaybackDeviceTest:(NSString * _Nonnull)audioFileName NS_SWIFT_NAME(startPlaybackDeviceTest(_:));
1523 
1537 - (int)stopPlaybackDeviceTest NS_SWIFT_NAME(stopPlaybackDeviceTest());
1538 
1570 - (int)registerExtensionWithVendor:(NSString * _Nonnull)provider
1571  extension:(NSString * _Nonnull)extension
1572  sourceType:(AgoraMediaSourceType)sourceType NS_SWIFT_NAME(registerExtension(withVendor:extension:sourceType:));
1573 
1593 - (int)enableExtensionWithVendor:(NSString * _Nonnull)provider extension:(NSString * _Nonnull)extension enabled:(BOOL)enabled NS_SWIFT_NAME(enableExtension(withVendor:extension:enabled:));
1594 
1620 - (int)enableExtensionWithVendor:(NSString * _Nonnull)provider
1621  extension:(NSString * _Nonnull)extension
1622  enabled:(BOOL)enabled
1623  sourceType:(AgoraMediaSourceType)sourceType NS_SWIFT_NAME(enableExtension(withVendor:extension:enabled:sourceType:));
1624 
1645 - (int)enableExtensionWithVendor:(NSString * _Nonnull)provider
1646  extension:(NSString * _Nonnull)extension
1647  extensionInfo:(AgoraExtensionInfo * _Nonnull)extensionInfo
1648  enabled:(BOOL)enabled NS_SWIFT_NAME(enableExtension(withVendor:extension:extensionInfo:enabled:));
1649 
1670 - (int)setExtensionProviderPropertyWithVendor:(NSString * _Nonnull)provider
1671  key:(NSString * _Nonnull)key
1672  value:(NSString * _Nonnull)value NS_SWIFT_NAME(setExtensionProviderPropertyWithVendor(_:key:value:));
1673 
1696 - (int)setExtensionPropertyWithVendor:(NSString * _Nonnull)provider
1697  extension:(NSString * _Nonnull)extension
1698  key:(NSString * _Nonnull)key
1699  value:(NSString * _Nonnull)value NS_SWIFT_NAME(setExtensionPropertyWithVendor(_:extension:key:value:));
1700 
1714 - (int)setExtensionPropertyWithVendor:(NSString * _Nonnull)provider
1715  extension:(NSString * _Nonnull)extension
1716  key:(NSString * _Nonnull)key
1717  value:(NSString * _Nonnull)value
1718  sourceType:(AgoraMediaSourceType)sourceType NS_SWIFT_NAME(setExtensionPropertyWithVendor(_:extension:key:value:sourceType:));
1719 
1733 - (int)setExtensionPropertyWithVendor:(NSString * _Nonnull)provider
1734  extension:(NSString * _Nonnull)extension
1735  extensionInfo:(AgoraExtensionInfo * _Nonnull)extensionInfo
1736  key:(NSString * _Nonnull)key
1737  value:(NSString * _Nonnull)value NS_SWIFT_NAME(setExtensionPropertyWithVendor(_:extension:extensionInfo:key:value:));
1738 
1753 - (NSString * _Nullable)getExtensionPropertyWithVendor:(NSString * _Nonnull)provider
1754  extension:(NSString * _Nonnull)extension
1755  key:(NSString * _Nonnull)key NS_SWIFT_NAME(getExtensionProperty(withVendor:extension:key:));
1756 
1772 - (NSString * _Nullable)getExtensionPropertyWithVendor:(NSString * _Nonnull)provider
1773  extension:(NSString * _Nonnull)extension
1774  key:(NSString * _Nonnull)key
1775  sourceType:(AgoraMediaSourceType)sourceType NS_SWIFT_NAME(getExtensionProperty(withVendor:extension:key:sourceType:));
1776 
1788 - (NSString * _Nullable)getExtensionPropertyWithVendor:(NSString * _Nonnull)provider
1789  extension:(NSString * _Nonnull)extension
1790  extensionInfo:(AgoraExtensionInfo * _Nonnull)extensionInfo
1791  key:(NSString * _Nonnull)key NS_SWIFT_NAME(getExtensionProperty(withVendor:extension:extensionInfo:key:));
1792 
1793 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
1794 
1827 - (int)enableLoopbackRecording:(BOOL)enabled deviceName:(NSString* _Nullable)deviceName NS_SWIFT_NAME(enableLoopbackRecording(_:deviceName:)) __attribute__((deprecated("Use createLoopbackAudioTrack: and publishLoopbackAudioTrackIds instead.")));
1828 
1843 - (int)adjustLoopbackSignalVolume:(NSInteger)volume NS_SWIFT_NAME(adjustLoopbackSignalVolume(_:));
1844 
1851 - (int)getLoopbackRecordingVolume NS_SWIFT_NAME(getLoopbackRecordingVolume());
1852 
1867 - (int)createLoopbackAudioTrack:(AgoraLoopbackAudioTrackConfig * _Nonnull)config NS_SWIFT_NAME(createLoopbackAudioTrack(_:));
1868 
1878 - (int)destroyLoopbackAudioTrack:(NSInteger)trackId NS_SWIFT_NAME(destroyLoopbackAudioTrack(_:));
1879 
1890 - (int)adjustLoopbackAudioPublishVolume:(NSInteger)trackId
1891  volume:(NSInteger)volume
1892  NS_SWIFT_NAME(adjustLoopbackAudioPublishVolume(_:volume:));
1893 
1915 - (int)enableAudioTrackVolumeIndication:(NSInteger)trackId
1916  interval:(NSInteger)interval
1917  NS_SWIFT_NAME(enableAudioTrackVolumeIndication(_:interval:));
1918 
1943 - (int)registerAudioTrackObserver:(NSInteger)trackId
1944  observer:(id<AgoraAudioTrackObserver> _Nonnull)observer
1945  NS_SWIFT_NAME(registerAudioTrackObserver(_:observer:));
1946 
1967 - (int)unregisterAudioTrackObserver:(NSInteger)trackId
1968  observer:(id<AgoraAudioTrackObserver> _Nonnull)observer
1969  NS_SWIFT_NAME(unregisterAudioTrackObserver(_:observer:));
1970 
1971 #endif
1972 
1973 #pragma mark Core Video
1974 
2003 - (int)enableVideo NS_SWIFT_NAME(enableVideo());
2004 
2031 - (int)disableVideo NS_SWIFT_NAME(disableVideo());
2032 
2062 - (int)enableLocalVideo:(BOOL)enabled NS_SWIFT_NAME(enableLocalVideo(_:));
2063 
2073 - (NSArray <AgoraVideoCodecCapInfo *> *_Nullable)queryCodecCapability;
2074 
2091 - (int)queryDeviceScore NS_SWIFT_NAME(queryDeviceScore());
2092 
2105 - (AgoraHDRCapability)queryHDRCapability:(AgoraVideoModule)videoModule NS_SWIFT_NAME(queryHDRCapability(_:));
2106 
2132 - (int)setVideoEncoderConfiguration:(AgoraVideoEncoderConfiguration * _Nonnull)config NS_SWIFT_NAME(setVideoEncoderConfiguration(_:));
2133 
2165 - (int)setupLocalVideo:(AgoraRtcVideoCanvas * _Nullable)local NS_SWIFT_NAME(setupLocalVideo(_:));
2166 
2187 - (int)setLocalRenderTargetFps:(AgoraVideoSourceType)sourceType
2188  targetFps:(int)targetFps;
2208 - (int)setRemoteRenderTargetFps:(int)targetFps;
2209 
2235 - (int)setLocalRenderMode:(AgoraVideoRenderMode)mode
2236  mirror:(AgoraVideoMirrorMode)mirror NS_SWIFT_NAME(setLocalRenderMode(_:mirror:));
2237 
2254 - (int)startPreview NS_SWIFT_NAME(startPreview());
2255 
2275 - (int)startPreview: (AgoraVideoSourceType)sourceType NS_SWIFT_NAME(startPreview(_:));
2276 
2284 - (int)stopPreview NS_SWIFT_NAME(stopPreview());
2285 
2300 - (int)stopPreview: (AgoraVideoSourceType)sourceType NS_SWIFT_NAME(stopPreview(_:));
2301 
2319 - (int)setRemoteRenderRotation:(NSUInteger)uid
2320  rotation:(AgoraVideoRotation)rotation NS_SWIFT_NAME(setRemoteRenderRotation(_:rotation:));
2321 
2322 
2350 - (int)setupRemoteVideo:(AgoraRtcVideoCanvas * _Nonnull)remote NS_SWIFT_NAME(setupRemoteVideo(_:));
2351 
2372 - (int)setRemoteRenderMode:(NSUInteger)uid
2373  mode:(AgoraVideoRenderMode)mode
2374  mirror:(AgoraVideoMirrorMode)mirror NS_SWIFT_NAME(setRemoteRenderMode(_:mode:mirror:));
2375 
2399 - (int)muteLocalVideoStream:(BOOL)mute NS_SWIFT_NAME(muteLocalVideoStream(_:));
2400 
2418 - (int)muteRemoteVideoStream:(NSUInteger)uid
2419  mute:(BOOL)mute NS_SWIFT_NAME(muteRemoteVideoStream(_:mute:));
2420 
2445 - (int)muteAllRemoteVideoStreams:(BOOL)mute NS_SWIFT_NAME(muteAllRemoteVideoStreams(_:));
2446 
2474 - (int)setBeautyEffectOptions:(BOOL)enable options:(AgoraBeautyOptions* _Nullable)options NS_SWIFT_NAME(setBeautyEffectOptions(_:options:));
2475 
2502 - (int)setBeautyEffectOptions:(BOOL)enable options:(AgoraBeautyOptions* _Nullable)options sourceType:(AgoraMediaSourceType)sourceType NS_SWIFT_NAME(setBeautyEffectOptions(_:options:sourceType:));
2503 
2532 - (int)setFaceShapeBeautyOptions:(BOOL)enable options:(AgoraFaceShapeBeautyOptions* _Nullable)options NS_SWIFT_NAME(setFaceShapeBeautyOptions(_:options:));
2533 
2572 - (int)setFaceShapeBeautyOptions:(BOOL)enable options:(AgoraFaceShapeBeautyOptions* _Nullable)options sourceType:(AgoraMediaSourceType)sourceType NS_SWIFT_NAME(setFaceShapeBeautyOptions(_:options:sourceType:));
2573 
2589 
2612 
2640 - (int)setFaceShapeAreaOptions:(AgoraFaceShapeAreaOptions* _Nullable)options NS_SWIFT_NAME(setFaceShapeAreaOptions(_:));
2641 
2675 - (int)setFaceShapeAreaOptions:(AgoraFaceShapeAreaOptions* _Nullable)options sourceType:(AgoraMediaSourceType)sourceType NS_SWIFT_NAME(setFaceShapeAreaOptions(_:sourceType:));
2676 
2693 - (AgoraFaceShapeAreaOptions * _Nullable)getFaceShapeAreaOptions:(AgoraFaceShapeArea) area NS_SWIFT_NAME(getFaceShapeAreaOptions(_:));
2694 
2717 - (AgoraFaceShapeAreaOptions * _Nullable)getFaceShapeAreaOptions:(AgoraFaceShapeArea) area sourceType:(AgoraMediaSourceType)sourceType NS_SWIFT_NAME(getFaceShapeAreaOptions(_:sourceType:));
2718 
2760 - (int)setVideoDenoiserOptions:(BOOL)enable options:(AgoraVideoDenoiserOptions* _Nullable)options NS_SWIFT_NAME(setVideoDenoiserOptions(_:options:));
2761 
2810 - (int)setVideoDenoiserOptions:(BOOL)enable options:(AgoraVideoDenoiserOptions* _Nullable)options sourceType:(AgoraMediaSourceType)sourceType NS_SWIFT_NAME(setVideoDenoiserOptions(_:options:sourceType:));
2811 
2812 
2838 - (int)setFilterEffectOptions:(BOOL)enable options:(AgoraFilterEffectOptions* _Nullable)options NS_SWIFT_NAME(setFilterEffectOptions(_:options:));
2839 
2874 - (int)setFilterEffectOptions:(BOOL)enable options:(AgoraFilterEffectOptions* _Nullable)options sourceType:(AgoraMediaSourceType)sourceType NS_SWIFT_NAME(setFilterEffectOptions(_:options:sourceType:));
2875 
2876 #pragma mark VideoEffectObject
2877 
2893 - (id<AgoraVideoEffectObject> _Nullable)createVideoEffectObjectWithBundlePath:(NSString * _Nonnull)bundlePath
2894  sourceType:(AgoraMediaSourceType)sourceType
2895  NS_SWIFT_NAME(createVideoEffectObject(bundlePath:sourceType:));
2896 
2909 - (int)destroyVideoEffectObject:(id<AgoraVideoEffectObject> _Nullable)videoEffectObject
2910  NS_SWIFT_NAME(destroyVideoEffectObject(_:));
2911 
2912 
2955 - (int)setLowlightEnhanceOptions:(BOOL)enable options:(AgoraLowlightEnhanceOptions* _Nullable)options NS_SWIFT_NAME(setLowlightEnhanceOptions(_:options:));
2956 
2994 - (int)setLowlightEnhanceOptions:(BOOL)enable options:(AgoraLowlightEnhanceOptions* _Nullable)options sourceType:(AgoraMediaSourceType)sourceType NS_SWIFT_NAME(setLowlightEnhanceOptions(_:options:sourceType:));
2995 
3028 - (int)setColorEnhanceOptions:(BOOL)enable options:(AgoraColorEnhanceOptions* _Nullable)options NS_SWIFT_NAME(setColorEnhanceOptions(_:options:));
3029 
3067 - (int)setColorEnhanceOptions:(BOOL)enable options:(AgoraColorEnhanceOptions* _Nullable)options sourceType:(AgoraMediaSourceType)sourceType NS_SWIFT_NAME(setColorEnhanceOptions(_:options:sourceType:));
3068 
3121 - (int)enableVirtualBackground:(BOOL)enable backData:(AgoraVirtualBackgroundSource* _Nullable)backData segData:(AgoraSegmentationProperty* _Nullable)segData NS_SWIFT_NAME(enableVirtualBackground(_:backData:segData:));
3122 
3183 - (int)enableVirtualBackground:(BOOL)enable backData:(AgoraVirtualBackgroundSource* _Nullable)backData segData:(AgoraSegmentationProperty* _Nullable)segData sourceType:(AgoraMediaSourceType)sourceType NS_SWIFT_NAME(enableVirtualBackground(_:backData:segData:sourceType:));
3184 
3255 - (int)setVideoScenario:(AgoraApplicationScenarioType)scenarioType NS_SWIFT_NAME(setVideoScenario(_:));
3256 
3268 - (int)setVideoQoEPreference:(AgoraQoEPreferenceType)preferenceType NS_SWIFT_NAME(setVideoQoEPreference(_:));
3269 
3290 - (BOOL)isFeatureAvailableOnDevice:(AgoraFeatureType)type;
3291 
3292 #pragma mark Audio Effect
3293 
3306 - (int)setLocalVoicePitch:(double)pitch NS_SWIFT_NAME(setLocalVoicePitch(_:));
3307 
3328 - (int)setLocalVoiceFormant:(double)formantRatio;
3329 
3346 - (int)setLocalVoiceEqualizationOfBandFrequency:(AgoraAudioEqualizationBandFrequency)bandFrequency withGain:(NSInteger)gain NS_SWIFT_NAME(setLocalVoiceEqualizationOf(_:withGain:));
3347 
3365 - (int)setLocalVoiceReverbOfType:(AgoraAudioReverbType)reverbType withValue:(NSInteger)value NS_SWIFT_NAME(setLocalVoiceReverbOf(_:withValue:));
3366 
3367 #pragma mark Audio Effect Playback
3368 
3392 - (int)preloadEffect:(int)soundId
3393  filePath:(NSString* _Nonnull)filePath NS_SWIFT_NAME(preloadEffect(_:filePath:));
3394 
3418 - (int)preloadEffect:(int)soundId
3419  filePath:(NSString* _Nonnull)filePath
3420  startPos:(int)startPos NS_SWIFT_NAME(preloadEffect(_:filePath:startPos:));
3421 
3469 - (int)playEffect:(int)soundId
3470  filePath:(NSString* _Nonnull)filePath
3471  loopCount:(NSInteger)loopCount
3472  pitch:(double)pitch
3473  pan:(double)pan
3474  gain:(NSInteger)gain NS_SWIFT_NAME(playEffect(_:filePath:loopCount:pitch:pan:gain:));
3475 
3476 
3525 - (int)playEffect:(int)soundId
3526  filePath:(NSString* _Nonnull)filePath
3527  loopCount:(NSInteger)loopCount
3528  pitch:(double)pitch
3529  pan:(double)pan
3530  gain:(NSInteger)gain
3531  startPos:(int)startPos NS_SWIFT_NAME(playEffect(_:filePath:loopCount:pitch:pan:gain:startPos:));
3532 
3584 - (int)playEffect:(int)soundId
3585  filePath:(NSString* _Nonnull)filePath
3586  loopCount:(NSInteger)loopCount
3587  pitch:(double)pitch
3588  pan:(double)pan
3589  gain:(NSInteger)gain
3590  publish:(BOOL)publish NS_SWIFT_NAME(playEffect(_:filePath:loopCount:pitch:pan:gain:publish:));
3591 
3645 - (int)playEffect:(int)soundId
3646  filePath:(NSString* _Nonnull)filePath
3647  loopCount:(NSInteger)loopCount
3648  pitch:(double)pitch
3649  pan:(double)pan
3650  gain:(NSInteger)gain
3651  publish:(BOOL)publish
3652  startPos:(int)startPos NS_SWIFT_NAME(playEffect(_:filePath:loopCount:pitch:pan:gain:publish:startPos:));
3653 
3684 - (int)playAllEffectsWithLoopCount:(NSInteger)loopCount
3685  pitch:(double)pitch
3686  pan:(double)pan
3687  gain:(NSInteger)gain
3688  publish:(BOOL)publish NS_SWIFT_NAME(playAllEffects(withLoopCount:pitch:pan:gain:publish:));
3689 
3703 - (int)getEffectsVolume NS_SWIFT_NAME(getEffectsVolume());
3704 
3719 - (int)setEffectsVolume:(NSInteger)volume NS_SWIFT_NAME(setEffectsVolume(_:));
3720 
3736 - (int)setVolumeOfEffect:(int)soundId
3737  withVolume:(int)volume NS_SWIFT_NAME(setVolumeOfEffect(_:withVolume:));
3738 
3749 - (int)getVolumeOfEffect:(int)soundId NS_SWIFT_NAME(getVolumeOfEffect(_:));
3750 
3760 - (int)pauseEffect:(int)soundId NS_SWIFT_NAME(pauseEffect(_:));
3761 
3769 - (int)pauseAllEffects NS_SWIFT_NAME(pauseAllEffects());
3770 
3780 - (int)resumeEffect:(int)soundId NS_SWIFT_NAME(resumeEffect(_:));
3781 
3794 - (int)resumeAllEffects NS_SWIFT_NAME(resumeAllEffects());
3795 
3812 - (int)stopEffect:(int)soundId NS_SWIFT_NAME(stopEffect(_:));
3813 
3828 - (int)stopAllEffects NS_SWIFT_NAME(stopAllEffects());
3829 
3843 - (int)getEffectDuration:(NSString* _Nonnull)filePath NS_SWIFT_NAME(getEffectDuration(_:));
3844 
3860 - (int)setEffectPosition:(int)soundId pos:(NSInteger)pos NS_SWIFT_NAME(setEffectPosition(_:pos:));
3861 
3873 - (int)getEffectCurrentPosition:(int)soundId NS_SWIFT_NAME(getEffectCurrentPosition(_:));
3874 
3889 - (int)unloadEffect:(int)soundId NS_SWIFT_NAME(unloadEffect(_:));
3890 
3897 - (int)unloadAllEffects NS_SWIFT_NAME(unloadAllEffects());
3898 
3899 #pragma mark beautifier effect
3900 
3939 - (int)setVoiceBeautifierPreset:(AgoraVoiceBeautifierPreset)preset NS_SWIFT_NAME(setVoiceBeautifierPreset(_:));
3940 
3980 - (int)setAudioEffectPreset:(AgoraAudioEffectPreset)preset NS_SWIFT_NAME(setAudioEffectPreset(_:));
3981 
4023 - (int)setVoiceConversionPreset:(AgoraVoiceConversionPreset)preset NS_SWIFT_NAME(setVoiceConversionPreset(_:));
4024 
4099 - (int)setAudioEffectParameters:(AgoraAudioEffectPreset)preset param1:(int)param1 param2:(int)param2 NS_SWIFT_NAME(setAudioEffectParameters(_:param1:param2:));
4100 
4149 - (int)setVoiceBeautifierParameters:(AgoraVoiceBeautifierPreset)preset param1:(int)param1 param2:(int)param2 NS_SWIFT_NAME(setVoiceBeautifierParameters(_:param1:param2:));
4150 
4163 - (int)setVoiceConversionParameters:(AgoraVoiceConversionPreset)preset param1:(int)param1 param2:(int)param2 NS_SWIFT_NAME(setVoiceConversionParameters(_:param1:param2:));
4164 
4182 - (int)setHeadphoneEQPreset:(AgoraHeadphoneEQPreset)preset NS_SWIFT_NAME(setHeadphoneEQPreset(_:));
4183 
4202 - (int)setHeadphoneEQParameters:(int)lowGain highGain:(int)highGain NS_SWIFT_NAME(setHeadphoneEQParameters(_:highGain:));
4203 
4222 - (int)enableVoiceAITuner:(BOOL)enabled type:(AgoraVoiceAITunerType)type NS_SWIFT_NAME(enableVoiceAITuner(_:type:));
4223 
4224 #pragma mark Sound Position Indication
4225 
4241 - (int)enableSoundPositionIndication:(BOOL)enabled NS_SWIFT_NAME(enableSoundPositionIndication(_:));
4242 
4272 - (int)setRemoteVoicePosition:(NSUInteger)uid pan:(double)pan gain:(double)gain NS_SWIFT_NAME(setRemoteVoicePosition(_:pan:gain:));
4273 
4296 - (int)enableSpatialAudio:(BOOL)enabled NS_SWIFT_NAME(enableSpatialAudio(_:));
4297 
4313 - (int)setRemoteUserSpatialAudioParams:(NSUInteger)uid
4314  params:(AgoraSpatialAudioParams* _Nonnull)params NS_SWIFT_NAME(setRemoteUserSpatialAudioParams(_:params:));
4315 
4316 #pragma mark Audio Noise Suppression
4317 
4353 - (int)setAINSMode:(BOOL)enabled mode:(AUDIO_AINS_MODE)mode NS_SWIFT_NAME(setAINSMode(_:mode:));
4354 
4355 #pragma mark Audio Mixing
4356 
4400 - (int)startAudioMixing:(NSString * _Nonnull)filePath
4401  loopback:(BOOL)loopback
4402  cycle:(NSInteger)cycle NS_SWIFT_NAME(startAudioMixing(_:loopback:cycle:));
4403 
4448 - (int)startAudioMixing:(NSString * _Nonnull)filePath
4449  loopback:(BOOL)loopback
4450  cycle:(NSInteger)cycle
4451  startPos:(NSInteger)startPos NS_SWIFT_NAME(startAudioMixing(_:loopback:cycle:startPos:));
4452 
4465 - (int)stopAudioMixing NS_SWIFT_NAME(stopAudioMixing());
4466 
4479 - (int)pauseAudioMixing NS_SWIFT_NAME(pauseAudioMixing());
4480 
4493 - (int)resumeAudioMixing NS_SWIFT_NAME(resumeAudioMixing());
4494 
4517 - (int)selectAudioTrack:(NSInteger)index NS_SWIFT_NAME(selectAudioTrack(_:));
4518 
4530 - (int)getAudioTrackCount NS_SWIFT_NAME(getAudioTrackCount());
4531 
4549 - (int)adjustAudioMixingVolume:(NSInteger)volume NS_SWIFT_NAME(adjustAudioMixingVolume(_:));
4550 
4567 - (int)adjustAudioMixingPublishVolume:(NSInteger)volume NS_SWIFT_NAME(adjustAudioMixingPublishVolume(_:));
4568 
4583 - (int)getAudioMixingPublishVolume NS_SWIFT_NAME(getAudioMixingPublishVolume());
4584 
4600 - (int)adjustAudioMixingPlayoutVolume:(NSInteger)volume NS_SWIFT_NAME(adjustAudioMixingPlayoutVolume(_:));
4601 
4615 - (int)getAudioMixingPlayoutVolume NS_SWIFT_NAME(getAudioMixingPlayoutVolume());
4616 
4629 - (int)getAudioMixingDuration NS_SWIFT_NAME(getAudioMixingDuration());
4630 
4649 - (int)getAudioMixingCurrentPosition NS_SWIFT_NAME(getAudioMixingCurrentPosition());
4650 
4666 - (int)setAudioMixingPosition:(NSInteger)pos NS_SWIFT_NAME(setAudioMixingPosition(_:));
4667 
4693 - (int)setAudioMixingDualMonoMode:(AgoraAudioMixingDualMonoMode)mode NS_SWIFT_NAME(setAudioMixingDualMonoMode(_:));
4694 
4714 - (int)setAudioMixingPitch:(NSInteger)pitch NS_SWIFT_NAME(setAudioMixingPitch(_:));
4715 
4734 - (int)setAudioMixingPlaybackSpeed:(NSInteger)speed NS_SWIFT_NAME(setAudioMixingPlaybackSpeed(_:));
4735 
4736 #pragma mark Audio Recording
4737 
4766 - (int)startAudioRecording:(NSString * _Nonnull)filePath
4767  quality:(AgoraAudioRecordingQuality)quality NS_SWIFT_NAME(startAudioRecording(_:quality:));
4768 
4790 - (int)startAudioRecordingWithConfig:(AgoraAudioRecordingConfiguration * _Nonnull)config NS_SWIFT_NAME(startAudioRecording(withConfig:));
4791 
4809 - (int)setAudioEncodedFrameDelegate:(id<AgoraAudioEncodedFrameDelegate> _Nullable)delegate config:(AgoraAudioEncodedFrameDelegateConfig * _Nonnull)config NS_SWIFT_NAME(setAudioEncodedFrameDelegate(_:config:));
4810 
4818 - (int)stopAudioRecording NS_SWIFT_NAME(stopAudioRecording());
4819 
4820 #pragma mark Echo Test
4821 
4848 - (int)startEchoTestWithConfig:(AgoraEchoTestConfiguration* _Nonnull)config NS_SWIFT_NAME(startEchoTest(withConfig:));
4849 
4862 - (int)stopEchoTest NS_SWIFT_NAME(stopEchoTest());
4863 
4864 
4865 #pragma mark Miscellaneous Audio Control
4866 
4884 - (int)enableInEarMonitoring:(BOOL)enabled NS_SWIFT_NAME(enable(inEarMonitoring:));
4885 
4906 - (int)enableInEarMonitoring:(BOOL)enabled includeAudioFilters:(AgoraEarMonitoringFilterType)includeAudioFilters NS_SWIFT_NAME(enable(inEarMonitoring:includeAudioFilters:));
4907 
4925 - (int)setInEarMonitoringVolume:(NSInteger)volume NS_SWIFT_NAME(setInEarMonitoringVolume(_:));
4926 
4927 #if TARGET_OS_IPHONE
4928 
4949 - (void)setAudioSessionOperationRestriction:(AgoraAudioSessionOperationRestriction)restriction NS_SWIFT_NAME(setAudioSessionOperationRestriction(_:));
4950 #endif
4951 
4952 #pragma mark Dual Video Mode
4953 
4980 - (int)enableDualStreamMode:(BOOL)enabled NS_SWIFT_NAME(enableDualStreamMode(_:)) __deprecated_msg("use setDualStreamMode: instead.");
4981 
5013 - (int)enableDualStreamMode:(BOOL)enabled
5014  streamConfig:(AgoraSimulcastStreamConfig* _Nonnull)streamConfig NS_SWIFT_NAME(enableDualStreamMode(_:streamConfig:)) __deprecated_msg("use setDualStreamMode: instead.");
5015 
5046 - (int)setDualStreamMode:(AgoraSimulcastStreamMode)mode NS_SWIFT_NAME(setDualStreamMode(_:));
5047 
5085 - (int)setDualStreamMode:(AgoraSimulcastStreamMode)mode
5086  streamConfig:(AgoraSimulcastStreamConfig* _Nonnull)streamConfig NS_SWIFT_NAME(setDualStreamMode(_:streamConfig:));
5087 
5107 - (int)setSimulcastConfig:(AgoraSimulcastConfig* _Nonnull)simulcastConfig NS_SWIFT_NAME(setSimulcastConfig(_:));
5108 
5145 - (int)setRemoteDefaultVideoStreamType:(AgoraVideoStreamType)streamType NS_SWIFT_NAME(setRemoteDefaultVideoStreamType(_:));
5146 
5184 - (int)setRemoteVideoStream:(NSUInteger)uid
5185  type:(AgoraVideoStreamType)streamType NS_SWIFT_NAME(setRemoteVideoStream(_:type:));
5186 
5211 - (int)setRemoteVideoSubscriptionOptions:(NSUInteger)uid
5212  options:(AgoraVideoSubscriptionOptions* _Nonnull)options NS_SWIFT_NAME(setRemoteVideoSubscriptionOptions(_:options:));
5213 
5214 #pragma mark Subscribe Blocklist / Allowlist
5215 
5242 - (int)setSubscribeAudioBlocklist:(NSArray <NSNumber *> *_Nonnull)blocklist NS_SWIFT_NAME(setSubscribeAudioBlocklist(_:));
5243 
5269 - (int)setSubscribeAudioAllowlist:(NSArray <NSNumber *> *_Nonnull)allowlist NS_SWIFT_NAME(setSubscribeAudioAllowlist(_:));
5270 
5297 - (int)setSubscribeVideoBlocklist:(NSArray <NSNumber *> *_Nonnull)blocklist NS_SWIFT_NAME(setSubscribeVideoBlocklist(_:));
5298 
5324 - (int)setSubscribeVideoAllowlist:(NSArray <NSNumber *> *_Nonnull)allowlist NS_SWIFT_NAME(setSubscribeVideoAllowlist(_:));
5325 
5326 #pragma mark Stream Fallback
5327 
5349 - (int)setRemoteSubscribeFallbackOption:(AgoraStreamFallbackOptions)option NS_SWIFT_NAME(setRemoteSubscribeFallbackOption(_:));
5350 
5362 - (int)setHighPriorityUserList:(NSArray <NSNumber *> *_Nullable)uidList
5363  option:(AgoraStreamFallbackOptions)option;
5364 
5365 
5366 #pragma mark External Media Source
5367 
5390 - (void)setExternalVideoSource:(BOOL)enable useTexture:(BOOL)useTexture sourceType:(AgoraExternalVideoSourceType)sourceType NS_SWIFT_NAME(setExternalVideoSource(_:useTexture:sourceType:));
5391 
5412 - (void)setExternalVideoSource:(BOOL)enable useTexture:(BOOL)useTexture
5413  sourceType:(AgoraExternalVideoSourceType)sourceType
5414  encodedVideoTrackOption:(AgoraEncodedVideoTrackOptions* _Nonnull)encodedVideoTrackOption NS_SWIFT_NAME(setExternalVideoSource(_:useTexture:sourceType:encodedVideoTrackOption:));
5415 
5430 - (BOOL)pushExternalVideoFrame:(AgoraVideoFrame * _Nonnull)frame NS_SWIFT_NAME(pushExternalVideoFrame(_:)) __deprecated_msg("use pushExternalVideoFrame:frame,videoTrackId options instead.");
5431 
5466 - (BOOL)pushExternalVideoFrame:(AgoraVideoFrame * _Nonnull)frame videoTrackId:(NSUInteger)videoTrackId NS_SWIFT_NAME(pushExternalVideoFrame(_:videoTrackId:));
5467 
5482 - (int)pushExternalEncodedVideoFrame:(NSData* _Nonnull)frame
5483  info:(AgoraEncodedVideoFrameInfo * _Nonnull)info NS_SWIFT_NAME(pushExternalEncodedVideoFrame(_:info:));
5484 
5500 - (int)pushExternalEncodedVideoFrame:(NSData* _Nonnull)frame
5501  info:(AgoraEncodedVideoFrameInfo * _Nonnull)info
5502  videoTrackId:(NSUInteger)videoTrackId NS_SWIFT_NAME(pushExternalEncodedVideoFrame(_:info:videoTrackId:));
5503 
5504 
5522 - (unsigned int)createCustomVideoTrack NS_SWIFT_NAME(createCustomVideoTrack());
5523 
5531 - (unsigned int)createCustomEncodedVideoTrack:(AgoraEncodedVideoTrackOptions* _Nonnull)encodedVideoTrackOption NS_SWIFT_NAME(createCustomEncodedVideoTrack(_:));
5532 
5542 - (int)destroyCustomVideoTrack:(NSUInteger)videoTrackId NS_SWIFT_NAME(destroyCustomVideoTrack(_:));
5543 
5552 - (int)destroyCustomEncodedVideoTrack:(NSUInteger)videoTrackId NS_SWIFT_NAME(destroyCustomEncodedVideoTrack(_:));
5553 
5554 #pragma mark External Audio Data
5555 
5580 - (void)enableExternalAudioSink:(BOOL)enabled
5581  sampleRate:(NSUInteger)sampleRate
5582  channels:(NSUInteger)channels NS_SWIFT_NAME(enableExternalAudioSink(_:sampleRate:channels:));
5583 
5620 - (BOOL)pullPlaybackAudioFrameRawData:(void * _Nonnull)data
5621  lengthInByte:(NSUInteger)lengthInByte NS_SWIFT_NAME(pullPlaybackAudioFrameRawData(_:lengthInByte:));
5622 
5639 - (CMSampleBufferRef _Nullable)pullPlaybackAudioFrameSampleBufferByLengthInByte:(NSUInteger)lengthInByte NS_SWIFT_NAME(pullPlaybackAudioFrameSampleBufferBy(lengthInByte:));
5640 
5668 - (int)createCustomAudioTrack:(AgoraAudioTrackType)trackType
5669  config:(AgoraAudioTrackConfig* _Nonnull)config;
5670 
5680 - (int)destroyCustomAudioTrack:(NSInteger)trackId;
5681 
5704 - (int)enableCustomAudioLocalPlayback:(NSInteger)trackId enabled:(BOOL)enabled NS_SWIFT_NAME(enableCustomAudioLocalPlayback(_:enabled:));
5705 
5717 - (int)pushExternalAudioFrameRawData:(void * _Nonnull)data
5718  samples:(NSInteger)samples
5719  trackId:(NSInteger)trackId
5720  timestamp:(NSTimeInterval)timestamp NS_SWIFT_NAME(pushExternalAudioFrameRawData(_:samples:trackId:timestamp:)) __deprecated_msg("use pushExternalAudioFrameRawData:samples:sampleRate:channels:trackId:timestamp: instead.");
5721 
5750 - (int)pushExternalAudioFrameRawData:(void* _Nonnull)data
5751  samples:(NSInteger)samples
5752  sampleRate:(NSInteger)sampleRate
5753  channels:(NSInteger)channels
5754  trackId:(NSInteger)trackId
5755  timestamp:(NSTimeInterval)timestamp NS_SWIFT_NAME(pushExternalAudioFrameRawData(_:samples:sampleRate:channels:trackId:timestamp:));
5756 
5766 - (int)pushExternalAudioFrameSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer NS_SWIFT_NAME(pushExternalAudioFrameSampleBuffer(_:)) __deprecated_msg("use pushExternalAudioFrameSampleBuffer:sampleRate:channels:trackId: instead.");
5767 
5791 - (int)pushExternalAudioFrameSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer
5792  sampleRate:(NSInteger)sampleRate
5793  channels:(NSInteger)channels
5794  trackId:(NSInteger)trackId NS_SWIFT_NAME(pushExternalAudioFrameSampleBuffer(_:sampleRate:channels:trackId:));
5795 
5818 - (int)setRecordingAudioFrameParametersWithSampleRate:(NSInteger)sampleRate
5819  channel:(NSInteger)channel
5821  samplesPerCall:(NSInteger)samplesPerCall NS_SWIFT_NAME(setRecordingAudioFrameParametersWithSampleRate(_:channel:mode:samplesPerCall:));
5822 
5845 - (int)setPlaybackAudioFrameParametersWithSampleRate:(NSInteger)sampleRate
5846  channel:(NSInteger)channel
5848  samplesPerCall:(NSInteger)samplesPerCall NS_SWIFT_NAME(setPlaybackAudioFrameParametersWithSampleRate(_:channel:mode:samplesPerCall:));
5849 
5871 - (int)setMixedAudioFrameParametersWithSampleRate:(NSInteger)sampleRate
5872  channel:(NSInteger)channel
5873  samplesPerCall:(NSInteger)samplesPerCall NS_SWIFT_NAME(setMixedAudioFrameParametersWithSampleRate(_:channel:samplesPerCall:));
5874 
5905 - (int)setEarMonitoringAudioFrameParametersWithSampleRate:(NSInteger)sampleRate
5906  channel:(NSInteger)channel
5908  samplesPerCall:(NSInteger)samplesPerCall NS_SWIFT_NAME(setEarMonitoringAudioFrameParametersWithSampleRate(_:channel:mode:samplesPerCall:));
5909 
5928 - (int)setPlaybackAudioFrameBeforeMixingParametersWithSampleRate:(NSInteger)sampleRate
5929  channel:(NSInteger)channel NS_SWIFT_NAME(setPlaybackAudioFrameBeforeMixingParametersWithSampleRate(_:channel:));
5930 
5954 - (int)setPlaybackAudioFrameBeforeMixingParametersWithSampleRate:(NSInteger)sampleRate
5955  channel:(NSInteger)channel
5956  samplesPerCall:(NSInteger)samplesPerCall NS_SWIFT_NAME(setPlaybackAudioFrameBeforeMixingParametersWithSampleRate(_:channel:samplesPerCall:));
5976 - (int)adjustCustomAudioPublishVolume:(NSInteger)trackId volume:(NSInteger)volume NS_SWIFT_NAME(adjustCustomAudioPublishVolume(_:volume:));
5977 
5997 - (int)adjustCustomAudioPlayoutVolume:(NSInteger)trackId volume:(NSInteger)volume NS_SWIFT_NAME(adjustCustomAudioPlayoutVolume(_:volume:));
5998 
6016 - (int64_t)getCurrentMonotonicTimeInMs NS_SWIFT_NAME(getCurrentMonotonicTimeInMs());
6017 
6018 #pragma mark Audio spectrum monitor
6019 
6037 - (int)registerAudioSpectrumDelegate:(id<AgoraAudioSpectrumDelegate> _Nullable )delegate NS_SWIFT_NAME(registerAudioSpectrumDelegate(_:));
6038 
6054 - (int)unregisterAudioSpectrumDelegate:(id<AgoraAudioSpectrumDelegate> _Nullable)delegate NS_SWIFT_NAME(unregisterAudioSpectrumDelegate(_:));
6055 
6074 - (int)enableAudioSpectrumMonitor:(int)intervalInMS NS_SWIFT_NAME(enableAudioSpectrumMonitor(_:));
6075 
6090 
6091 #pragma mark Built-in Encryption
6092 
6121 - (int)enableEncryption:(BOOL)enabled encryptionConfig:(AgoraEncryptionConfig * _Nonnull)config NS_SWIFT_NAME(enableEncryption(_:encryptionConfig:));
6122 
6123 #pragma mark Data Stream
6124 
6162 - (int)createDataStream:(NSInteger * _Nonnull)streamId
6163  reliable:(BOOL)reliable
6164  ordered:(BOOL)ordered NS_SWIFT_NAME(createDataStream(_:reliable:ordered:));
6165 
6188 - (int)createDataStream:(NSInteger * _Nonnull)streamId
6189  config:(AgoraDataStreamConfig * _Nonnull)config NS_SWIFT_NAME(createDataStream(_:config:));
6190 
6222 - (int)sendStreamMessage:(NSInteger)streamId
6223  data:(NSData * _Nonnull)data NS_SWIFT_NAME(sendStreamMessage(_:data:));
6224 
6225 #pragma mark Common Data Transmission
6226 
6243 - (int)sendRdtMessage:(NSInteger)uid
6244  type:(AgoraRdtStreamType)type
6245  data:(NSData * _Nonnull)data NS_SWIFT_NAME(sendRdtMessage(_:type:data:));
6246 
6258 - (int)sendMediaControlMessage:(NSInteger)uid
6259  data:(NSData * _Nonnull)data NS_SWIFT_NAME(sendMediaControlMessage(_:data:));
6260 
6261 #pragma mark Stream Publish
6262 
6295 - (int)startRtmpStreamWithoutTranscoding:(NSString* _Nonnull)url NS_SWIFT_NAME(startRtmpStreamWithoutTranscoding(_:));
6296 
6331 - (int)startRtmpStreamWithTranscoding:(NSString* _Nonnull)url transcoding:(AgoraLiveTranscoding* _Nullable)transcoding NS_SWIFT_NAME(startRtmpStream(withTranscoding:transcoding:));
6332 
6349 - (int)updateRtmpTranscoding:(AgoraLiveTranscoding* _Nullable)transcoding NS_SWIFT_NAME(updateRtmpTranscoding(_:));
6350 
6371 - (int)stopRtmpStream:(NSString* _Nonnull)url NS_SWIFT_NAME(stopRtmpStream(_:));
6372 
6373 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
6374 #pragma mark Screen Capture
6375 
6400 - (int)startScreenCapture:(AgoraVideoSourceType)sourceType config:(AgoraScreenCaptureConfiguration * _Nullable)config NS_SWIFT_NAME(startScreenCapture(_:config:));
6401 
6417 - (int)stopScreenCapture:(AgoraVideoSourceType)sourceType NS_SWIFT_NAME(stopScreenCapture(_:));
6418 
6458 - (int)startScreenCaptureByDisplayId:(UInt32)displayId
6459  regionRect:(CGRect)regionRect
6460  captureParams:(AgoraScreenCaptureParameters *_Nonnull)captureParams NS_SWIFT_NAME(startScreenCapture(byDisplayId:regionRect:captureParams:));
6461 
6503 - (int)startScreenCaptureByWindowId:(UInt32)windowId
6504  regionRect:(CGRect)regionRect
6505  captureParams:(AgoraScreenCaptureParameters *_Nonnull)captureParams NS_SWIFT_NAME(startScreenCapture(byWindowId:regionRect:captureParams:));
6506 
6519 - (int)updateScreenCaptureRegion:(CGRect)rect NS_SWIFT_NAME(updateScreenCaptureRegion(_:));
6520 
6538 - (int)updateScreenCaptureParameters:(AgoraScreenCaptureParameters * _Nonnull)captureParams NS_SWIFT_NAME(updateScreenCaptureParameters(_:));
6539 
6570 - (NSArray<AgoraScreenCaptureSourceInfo*>* _Nullable)getScreenCaptureSourcesWithThumbSize:(NSSize)thumbSize iconSize:(NSSize)iconSize includeScreen:(BOOL)includeScreen NS_SWIFT_NAME(getScreenCaptureSources(withThumbSize:iconSize:includeScreen:));
6571 
6572 #endif
6573 
6590 - (int)setScreenCaptureScenario:(AgoraScreenScenarioType)scenarioType NS_SWIFT_NAME(setScreenCaptureScenario(_:));
6591 
6609 - (int)stopScreenCapture NS_SWIFT_NAME(stopScreenCapture());
6610 
6611 #if TARGET_OS_IPHONE
6612 
6655 - (int)startScreenCapture:(AgoraScreenCaptureParameters2* _Nullable)parameters NS_SWIFT_NAME(startScreenCapture(_:));
6656 
6666 - (int)updateScreenCapture:(AgoraScreenCaptureParameters2* _Nullable)parameters NS_SWIFT_NAME(updateScreenCapture(_:));
6667 
6688 
6703 - (NSArray<AgoraFocalLengthInfo *>* _Nullable)queryCameraFocalLengthCapability NS_SWIFT_NAME(queryCameraFocalLengthCapability());
6704 
6705 #pragma mark Camera Control
6706 
6718 - (BOOL)isCameraZoomSupported NS_SWIFT_NAME(isCameraZoomSupported());
6719 
6730 - (CGFloat)cameraMaxZoomFactor NS_SWIFT_NAME(cameraMaxZoomFactor());
6731 
6757 - (CGFloat)setCameraZoomFactor:(CGFloat)zoomFactor NS_SWIFT_NAME(setCameraZoomFactor(_:));
6758 
6770 - (BOOL)isCameraFocusPositionInPreviewSupported NS_SWIFT_NAME(isCameraFocusPositionInPreviewSupported());
6771 
6789 - (BOOL)setCameraFocusPositionInPreview:(CGPoint)position NS_SWIFT_NAME(setCameraFocusPositionInPreview(_:));
6790 
6802 - (BOOL)isCameraExposurePositionSupported NS_SWIFT_NAME(isCameraExposurePositionSupported());
6803 
6821 - (BOOL)setCameraExposurePosition:(CGPoint)positionInView NS_SWIFT_NAME(setCameraExposurePosition(_:));
6822 
6841 - (BOOL)isCameraExposureSupported NS_SWIFT_NAME(isCameraExposureSupported());
6842 
6874 - (CGFloat)setCameraExposureFactor:(CGFloat)exposureFactor NS_SWIFT_NAME(setCameraExposureFactor(_:));
6875 
6893 - (BOOL)isCameraTorchSupported NS_SWIFT_NAME(isCameraTorchSupported());
6894 
6911 - (BOOL)setCameraTorchOn:(BOOL)isOn NS_SWIFT_NAME(setCameraTorchOn(_:));
6912 
6924 - (BOOL)isCameraAutoFocusFaceModeSupported NS_SWIFT_NAME(isCameraAutoFocusFaceModeSupported());
6925 
6943 - (BOOL)setCameraAutoFocusFaceModeEnabled:(BOOL)enable NS_SWIFT_NAME(setCameraAutoFocusFaceModeEnabled(_:));
6944 
6956 - (BOOL)isCameraAutoExposureFaceModeSupported NS_SWIFT_NAME(isCameraAutoExposureFaceModeSupported());
6957 
6967 - (BOOL)setCameraAutoExposureFaceModeEnabled:(BOOL)enable NS_SWIFT_NAME(setCameraAutoExposureFaceModeEnabled(_:));
6968 
6988 - (int)switchCamera NS_SWIFT_NAME(switchCamera());
6989 
7031 - (int)enableMultiCamera:(BOOL)enabled config:(AgoraCameraCapturerConfiguration* _Nullable)config NS_SWIFT_NAME(enableMultiCamera(_:config:));
7032 
7058  - (int) setCameraStabilizationMode:(AgoraCameraStabilizationMode)mode NS_SWIFT_NAME(setCameraStabilizationMode(_:));
7059 #endif
7060 
7074 - (BOOL)isCameraCenterStageSupported NS_SWIFT_NAME(isCameraCenterStageSupported());
7075 
7112 - (int)enableCameraCenterStage:(BOOL)enabled NS_SWIFT_NAME(enableCameraCenterStage(_:));
7113 
7132 - (int)setCameraCapturerConfiguration:(AgoraCameraCapturerConfiguration * _Nullable)config NS_SWIFT_NAME(setCameraCapturerConfiguration(_:));
7133 
7157 - (int)startCameraCapture:(AgoraVideoSourceType)sourceType config:(AgoraCameraCapturerConfiguration * _Nullable)config NS_SWIFT_NAME(startCameraCapture(_:config:));
7158 
7179 - (int)stopCameraCapture:(AgoraVideoSourceType)sourceType NS_SWIFT_NAME(stopCameraCapture(_:));
7180 
7181 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
7182 #pragma mark macOS Device
7183 
7196 - (void)monitorDeviceChange:(BOOL)enabled NS_SWIFT_NAME(monitorDeviceChange(_:));
7197 
7214 - (NSArray<AgoraRtcDeviceInfo *> * _Nullable)enumerateDevices:(AgoraMediaDeviceType)type NS_SWIFT_NAME(enumerateDevices(_:));
7215 
7230 - (AgoraRtcDeviceInfo * _Nullable)getDeviceInfo:(AgoraMediaDeviceType)type NS_SWIFT_NAME(getDeviceInfo(_:));
7231 
7244 - (int)setDevice:(AgoraMediaDeviceType)type deviceId:(NSString * _Nonnull)deviceId NS_SWIFT_NAME(setDevice(_:deviceId:));
7245 
7256 - (AgoraRtcDeviceInfo* _Nullable)getDefaultAudioDevice:(AgoraMediaDeviceType)type NS_SWIFT_NAME(getDefaultAudioDevice(_:));
7257 
7268 - (int)getDeviceVolume:(AgoraMediaDeviceType)type NS_SWIFT_NAME(getDeviceVolume(_:));
7269 
7286 - (int)setDeviceVolume:(AgoraMediaDeviceType)type volume:(int)volume NS_SWIFT_NAME(setDeviceVolume(_:volume:));
7287 
7315 - (int)startAudioDeviceLoopbackTest:(int)indicationInterval NS_SWIFT_NAME(startAudioDeviceLoopbackTest(_:));
7316 
7330 - (int)stopAudioDeviceLoopbackTest NS_SWIFT_NAME(stopAudioDeviceLoopbackTest());
7331 
7347 - (int)followSystemPlaybackDevice:(BOOL)enable NS_SWIFT_NAME(followSystemPlaybackDevice(_:));
7348 
7364 - (int)followSystemRecordingDevice:(BOOL)enable NS_SWIFT_NAME(followSystemRecordingDevice(_:));
7365 
7374 - (int)startCaptureDeviceTest:(NSView * _Nonnull)view NS_SWIFT_NAME(startCaptureDeviceTest(_:));
7375 
7382 - (int)stopCaptureDeviceTest NS_SWIFT_NAME(stopCaptureDeviceTest());
7383 #endif
7384 
7385 #pragma mark Face Detection
7386 
7387 #if TARGET_OS_IPHONE
7388 
7409 - (int)enableFaceDetection:(BOOL)enable NS_SWIFT_NAME(enableFaceDetection(_:));
7410 #endif
7411 
7412 #pragma mark Watermark
7413 
7440 - (int)addVideoWatermark:(AgoraImage * _Nonnull)watermark NS_SWIFT_NAME(addVideoWatermark(_:)) __deprecated_msg("use addVideoWatermarkWithConfig:config instead.");
7441 
7490 - (int)addVideoWatermark:(NSURL* _Nonnull)url options:(WatermarkOptions* _Nonnull)options NS_SWIFT_NAME(addVideoWatermark(_:options:)) __deprecated_msg("use addVideoWatermarkWithConfig:config instead.");
7491 
7507 - (int)addVideoWatermarkWithConfig:(WatermarkConfig* _Nonnull)config NS_SWIFT_NAME(addVideoWatermark(_:));
7508 
7524 - (int)removeVideoWatermark:(NSString* _Nonnull)id NS_SWIFT_NAME(removeVideoWatermark(_:));
7525 
7533 - (int)clearVideoWatermarks NS_SWIFT_NAME(clearVideoWatermarks());
7534 
7535 #pragma mark String UID
7536 
7585 - (int)registerLocalUserAccount:(NSString* _Nonnull)userAccount appId:(NSString* _Nonnull)appId NS_SWIFT_NAME(registerLocalUserAccount(_:appId:));
7586 
7677 - (int)joinChannelByToken:(NSString * _Nullable)token
7678  channelId:(NSString * _Nonnull)channelId
7679  userAccount:(NSString * _Nonnull)userAccount
7680  joinSuccess:(void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannel(byToken:channelId:userAccount:joinSuccess:));
7681 
7775 - (int)joinChannelByToken:(NSString * _Nullable)token
7776  channelId:(NSString * _Nonnull)channelId
7777  userAccount:(NSString * _Nonnull)userAccount
7778  mediaOptions:(AgoraRtcChannelMediaOptions * _Nonnull)mediaOptions
7779  joinSuccess:(void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannel(byToken:channelId:userAccount:mediaOptions:joinSuccess:));
7780 
7801 - (AgoraUserInfo* _Nullable)getUserInfoByUserAccount:(NSString* _Nonnull)userAccount withError:(AgoraErrorCode* _Nullable)error NS_SWIFT_NAME(getUserInfo(byUserAccount:withError:));
7802 
7823 - (AgoraUserInfo* _Nullable)getUserInfoByUid:(NSUInteger)uid withError:(AgoraErrorCode* _Nullable)error NS_SWIFT_NAME(getUserInfo(byUid:withError:));
7824 
7825 #pragma mark Custom Audio PCM Frame
7826 
7844 - (BOOL)setAudioFrameDelegate:(id<AgoraAudioFrameDelegate> _Nullable)delegate NS_SWIFT_NAME(setAudioFrameDelegate(_:));
7845 
7846 #pragma mark Custom Video Frame
7847 
7877 - (BOOL)setVideoFrameDelegate:(id<AgoraVideoFrameDelegate> _Nullable)delegate NS_SWIFT_NAME(setVideoFrameDelegate(_:));
7878 
7879 #pragma mark Encoded Video Frame
7880 
7897 - (BOOL)setEncodedVideoFrameDelegate:(id<AgoraEncodedVideoFrameDelegate> _Nullable)delegate NS_SWIFT_NAME(setEncodedVideoFrameDelegate(_:));
7898 
7899 #pragma mark Custom Face Info
7900 
7927 - (BOOL)setFaceInfoDelegate:(id<AgoraFaceInfoDelegate> _Nullable)delegate NS_SWIFT_NAME(setFaceInfoDelegate(_:));
7928 
7929 #pragma mark Custom Media Metadata
7930 
7953 - (BOOL)setMediaMetadataDataSource:(id<AgoraMediaMetadataDataSource> _Nullable)metadataDataSource withType:(AgoraMetadataType)type NS_SWIFT_NAME(setMediaMetadataDataSource(_:with:));
7954 
7979 - (BOOL)setMediaMetadataDelegate:(id<AgoraMediaMetadataDelegate> _Nullable)metadataDelegate withType:(AgoraMetadataType)type NS_SWIFT_NAME(setMediaMetadataDelegate(_:with:));
7980 
7981 #pragma mark Miscellaneous Methods
7982 
7988 + (NSString * _Nonnull)getSdkVersion NS_SWIFT_NAME(getSdkVersion());
7989 
7998 + (NSString* _Nonnull)getErrorDescription:(NSInteger)error NS_SWIFT_NAME(getErrorDescription(_:));
7999 
8010 - (void * _Nullable)getNativeHandle NS_SWIFT_NAME(getNativeHandle());
8011 
8028 - (int)setLogFile:(NSString * _Nonnull)filePath NS_SWIFT_NAME(setLogFile(_:));
8029 
8047 - (int)setLogFilter:(NSUInteger)filter NS_SWIFT_NAME(setLogFilter(_:));
8048 
8082 - (int)setLogFileSize:(NSUInteger)fileSizeInKBytes NS_SWIFT_NAME(setLogFileSize(_:));
8083 
8091 - (NSString * _Nullable)uploadLogFile NS_SWIFT_NAME(uploadLogFile());
8092 
8103 - (int)writeLog:(AgoraLogLevel)level content:(NSString * _Nonnull)content NS_SWIFT_NAME(writeLog(_:content:));
8104 
8117 - (NSString * _Nullable)getCallId NS_SWIFT_NAME(getCallId());
8118 
8135 - (int)rate:(NSString * _Nonnull)callId
8136  rating:(NSInteger)rating
8137 description:(NSString * _Nullable)description NS_SWIFT_NAME(rate(_:rating:description:));
8138 
8157 - (int)complain:(NSString * _Nonnull)callId
8158  description:(NSString * _Nullable)description NS_SWIFT_NAME(complain(_:description:));
8159 
8174 - (int)enableMainQueueDispatch:(BOOL)enabled NS_SWIFT_NAME(enableMainQueueDispatch(_:));
8175 
8201 - (int)startLastmileProbeTest:(AgoraLastmileProbeConfig *_Nullable)config NS_SWIFT_NAME(startLastmileProbeTest(_:));
8202 
8210 - (int)stopLastmileProbeTest NS_SWIFT_NAME(stopLastmileProbeTest());
8211 
8222 - (int)setParameters:(NSString * _Nonnull)options NS_SWIFT_NAME(setParameters(_:));
8223 
8229 - (NSString * _Nullable)getParameter:(NSString * _Nonnull)parameter
8230  args:(NSString * _Nullable)args NS_SWIFT_NAME(getParameter(_:args:));
8231 
8244 - (uint64_t)getNtpWallTimeInMs;
8245 
8246 #pragma mark MediaPlayer
8247 
8263 - (id<AgoraRtcMediaPlayerProtocol>_Nullable)createMediaPlayerWithDelegate:(id<AgoraRtcMediaPlayerDelegate>_Nullable)delegate NS_SWIFT_NAME(createMediaPlayer(with:));
8264 
8279 - (id<AgoraRtcMediaPlayerCacheManagerProtocol> _Nullable)createMediaPlayerCacheManager NS_SWIFT_NAME(createMediaPlayerCacheManager());
8280 
8290 - (int)destroyMediaPlayer:(id<AgoraRtcMediaPlayerProtocol>_Nullable)mediaPlayer NS_SWIFT_NAME(destroyMediaPlayer(_:));
8291 
8297 - (id<AgoraRtcMediaPlayerProtocol> _Nullable)getMediaPlayer:(int)mediaPlayerId NS_SWIFT_NAME(getMediaPlayer(_:));
8298 
8299 #pragma mark rhythm player
8300 
8335 - (int)startRhythmPlayer:(NSString * _Nonnull)sound1 sound2:(NSString * _Nonnull)sound2 config:(AgoraRhythmPlayerConfig * _Nullable)config NS_SWIFT_NAME(startRhythmPlayer(_:sound2:config:));
8336 
8348 - (int)stopRhythmPlayer NS_SWIFT_NAME(stopRhythmPlayer());
8349 
8375 - (int)configRhythmPlayer:(AgoraRhythmPlayerConfig * _Nullable)config NS_SWIFT_NAME(configRhythmPlayer(_:));
8376 
8377 #pragma mark Streaming Kit
8378 
8395 - (int)setDirectCdnStreamingAudioConfiguration:(AgoraAudioProfile)profile NS_SWIFT_NAME(setDirectCdnStreamingAudioConfiguration(_:));
8396 
8421 - (int)setDirectCdnStreamingVideoConfiguration:(AgoraVideoEncoderConfiguration * _Nonnull)config NS_SWIFT_NAME(setDirectCdnStreamingVideoConfiguration(_:));
8422 
8461 - (int)startDirectCdnStreaming:(id<AgoraDirectCdnStreamingEventDelegate> _Nonnull)delegate
8462  publishUrl:(NSString * _Nonnull)publishUrl
8463  mediaOptions:(AgoraDirectCdnStreamingMediaOptions * _Nonnull)options NS_SWIFT_NAME(startDirectCdnStreaming(_:publishUrl:mediaOptions:));
8464 
8474 - (int)stopDirectCdnStreaming NS_SWIFT_NAME(stopDirectCdnStreaming());
8475 
8487 - (int)updateDirectCdnStreamingMediaOptions:(AgoraDirectCdnStreamingMediaOptions * _Nonnull)options NS_SWIFT_NAME(updateDirectCdnStreamingMediaOptions(_:));
8488 
8506 - (int)setAdvancedAudioOptions:(AgoraAdvancedAudioOptions * _Nonnull)options NS_SWIFT_NAME(setAdvancedAudioOptions(_:));
8507 
8519 - (int)sendCustomReportMessage:(NSString * _Nullable)messageId
8520  category:(NSString * _Nullable)category
8521  event:(NSString * _Nullable)event
8522  label:(NSString * _Nullable)label
8523  value:(NSInteger)value NS_SWIFT_NAME(sendCustomReportMessage(_:category:event:label:value:));
8524 
8538 - (int)setLogLevel:(AgoraLogLevel)level NS_SWIFT_NAME(setLogLevel(_:));
8539 
8559 - (int)setLocalAccessPoint:(AgoraLocalAccessPointConfiguration* _Nonnull)config NS_SWIFT_NAME(setLocalAccessPoint(withConfig:));
8560 
8595 - (int)setCloudProxy:(AgoraCloudProxyType)proxyType NS_SWIFT_NAME(setCloudProxy(_:));
8596 
8626 - (NSInteger)takeSnapshot:(NSInteger)uid filePath:(NSString* _Nonnull)filePath NS_SWIFT_NAME(takeSnapshot(_:filePath:));
8627 
8652 - (NSInteger)takeSnapshotWithConfig:(NSInteger)uid config:(AgoraSnapshotConfig* _Nonnull)config NS_SWIFT_NAME(takeSnapshotWithConfig(_:config:));
8653 
8683 - (int)enableContentInspect:(BOOL)enabled config:(AgoraContentInspectConfig* _Nonnull)config NS_SWIFT_NAME(enableContentInspect(_:config:));
8684 
8705 - (int)setAVSyncSource:(NSString* _Nonnull)channelId uid:(NSUInteger)uid NS_SWIFT_NAME(setAVSyncSource(_:uid:));
8706 
8716 - (int)sendAudioMetadata:(NSData * _Nonnull)metadata NS_SWIFT_NAME(sendAudioMetadata(_:));
8737 - (int)enableVideoImageSource:(BOOL)enable
8738  options:(AgoraImageTrackOptions *_Nullable)options NS_SWIFT_NAME(enableVideoImageSource(_:options:));
8739 
8760 - (int)getNetworkType NS_SWIFT_NAME(getNetworkType());
8761 
8783 - (AgoraMediaRecorder * _Nullable)createMediaRecorder:(AgoraRecorderStreamInfo * _Nonnull)info NS_SWIFT_NAME(createMediaRecorder(withInfo:));
8784 
8800 - (int)destroyMediaRecorder:(AgoraMediaRecorder * _Nullable)mediaRecorder;
8801 
8802 #pragma mark Channel Transcoder
8803 
8808 - (id<AgoraH265TranscoderProtocol>_Nullable)getH265Transcoder NS_SWIFT_NAME (getH265Transcoder());
8809 
8810 #pragma mark Deprecated Methods
8811 
8823 - (int)setLocalVideoMirrorMode:(AgoraVideoMirrorMode)mode NS_SWIFT_NAME(setLocalVideoMirrorMode(_:)) __deprecated;
8824 
8846 - (int)enableWebSdkInteroperability:(BOOL)enabled NS_SWIFT_NAME(enableWebSdkInteroperability(_:)) __deprecated;
8847 
8859 - (void)audioVolumeIndicationBlock:(void(^ _Nullable)(NSArray * _Nonnull speakers, NSInteger totalVolume))audioVolumeIndicationBlock NS_SWIFT_NAME(audioVolumeIndicationBlock(_:)) __deprecated_msg("use delegate instead.");
8860 
8869 - (void)firstLocalVideoFrameBlock:(void(^ _Nullable)(NSInteger width, NSInteger height, NSInteger elapsed))firstLocalVideoFrameBlock NS_SWIFT_NAME(firstLocalVideoFrameBlock(_:)) __deprecated_msg("use delegate instead.");
8870 
8881 - (void)firstRemoteVideoDecodedBlock:(void(^ _Nullable)(NSUInteger uid, NSInteger width, NSInteger height, NSInteger elapsed))firstRemoteVideoDecodedBlock NS_SWIFT_NAME(firstRemoteVideoDecodedBlock(_:)) __deprecated_msg("use delegate instead.");
8882 
8892 - (void)firstRemoteVideoFrameBlock:(void(^ _Nullable)(NSUInteger uid, NSInteger width, NSInteger height, NSInteger elapsed))firstRemoteVideoFrameBlock NS_SWIFT_NAME(firstRemoteVideoFrameBlock(_:)) __deprecated_msg("use delegate instead.");
8893 
8903 - (void)userJoinedBlock:(void(^ _Nullable)(NSUInteger uid, NSInteger elapsed))userJoinedBlock NS_SWIFT_NAME(userJoinedBlock(_:)) __deprecated_msg("use delegate instead.");
8904 
8913 - (void)userOfflineBlock:(void(^ _Nullable)(NSUInteger uid))userOfflineBlock NS_SWIFT_NAME(userOfflineBlock(_:)) __deprecated_msg("use delegate instead.");
8914 
8924 - (void)userMuteAudioBlock:(void(^ _Nullable)(NSUInteger uid, BOOL muted))userMuteAudioBlock NS_SWIFT_NAME(userMuteAudioBlock(_:)) __deprecated_msg("use delegate instead.");
8925 
8940 - (void)userMuteVideoBlock:(void(^ _Nullable)(NSUInteger uid, BOOL muted))userMuteVideoBlock NS_SWIFT_NAME(userMuteVideoBlock(_:)) __deprecated_msg("use delegate instead.");
8941 
8949 - (void)localVideoStatBlock:(void(^ _Nullable)(NSInteger sentBitrate, NSInteger sentFrameRate))localVideoStatBlock NS_SWIFT_NAME(localVideoStatBlock(_:)) __deprecated_msg("use delegate instead.");
8950 
8960 - (void)remoteVideoStatBlock:(void(^ _Nullable)(NSUInteger uid, NSInteger delay, NSInteger receivedBitrate, NSInteger receivedFrameRate))remoteVideoStatBlock NS_SWIFT_NAME(remoteVideoStatBlock(_:)) __deprecated_msg("use delegate instead.");
8961 
8965 - (void)cameraReadyBlock:(void(^ _Nullable)(void))cameraReadyBlock NS_SWIFT_NAME(cameraReadyBlock(_:)) __deprecated_msg("use delegate instead.");
8966 
8970 - (void)connectionLostBlock:(void(^ _Nullable)(void))connectionLostBlock NS_SWIFT_NAME(connectionLostBlock(_:)) __deprecated_msg("use delegate instead.");
8971 
8982 - (void)rejoinChannelSuccessBlock:(void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))rejoinChannelSuccessBlock NS_SWIFT_NAME(rejoinChannelSuccessBlock(_:)) __deprecated_msg("use delegate instead.");
8983 
8990 - (void)rtcStatsBlock:(void(^ _Nullable)(AgoraChannelStats * _Nonnull stat))rtcStatsBlock NS_SWIFT_NAME(rtcStatsBlock(_:)) __deprecated_msg("use delegate instead.");
8991 
9001 - (void)audioQualityBlock:(void(^ _Nullable)(NSUInteger uid, AgoraNetworkQuality quality, NSUInteger delay, NSUInteger lost))audioQualityBlock NS_SWIFT_NAME(audioQualityBlock(_:)) __deprecated_msg("use delegate instead.");
9002 
9011 - (void)networkQualityBlock:(void(^ _Nullable)(NSUInteger uid, AgoraNetworkQuality txQuality, AgoraNetworkQuality rxQuality))networkQualityBlock NS_SWIFT_NAME(networkQualityBlock(_:)) __deprecated_msg("use delegate instead.");
9012 
9019 - (void)lastmileQualityBlock:(void(^ _Nullable)(AgoraNetworkQuality quality))lastmileQualityBlock NS_SWIFT_NAME(lastmileQualityBlock(_:)) __deprecated_msg("use delegate instead.");
9020 
9024 - (void)mediaEngineEventBlock:(void(^ _Nullable)(NSInteger code))mediaEngineEventBlock NS_SWIFT_NAME(mediaEngineEventBlock(_:)) __deprecated_msg("use delegate instead.");
9025 
9035 - (int)pauseAudio __deprecated_msg("use disableAudio instead.");
9036 
9046 - (int)resumeAudio __deprecated_msg("use enableAudio instead.");
9047 
9054 + (instancetype _Nonnull)sharedEngineWithAppId:(NSString * _Nonnull)AppId
9055  error:(void(^ _Nullable)(AgoraErrorCode errorCode))errorBlock NS_SWIFT_NAME(sharedEngine(withAppId:error:)) __deprecated_msg("use sharedEngineWithAppId:delegate: instead.");
9056 
9062 - (int)setHighQualityAudioParametersWithFullband:(BOOL)fullband
9063  stereo:(BOOL)stereo
9064  fullBitrate:(BOOL)fullBitrate NS_SWIFT_NAME(setHighQualityAudioParametersWithFullband(_:stereo:fullBitrate:)) __deprecated_msg("use setAudioProfile:scenario: instead.");
9065 
9066 
9095 - (int)setAudioProfile:(AgoraAudioProfile)profile scenario:(AgoraAudioScenario)scenario NS_SWIFT_NAME(setAudioProfile(_:scenario:)) __deprecated_msg("use setAudioProfile: instead.");
9096 
9103 - (NSString * _Nullable)getDeviceId:(AgoraMediaDeviceType)type NS_SWIFT_NAME(getDeviceId(_:)) __deprecated_msg("use getDeviceInfo: instead.");
9104 
9127 - (int)setExternalAudioSource:(BOOL)enabled
9128  sampleRate:(NSInteger)sampleRate
9129  channels:(NSInteger)channels NS_SWIFT_NAME(setExternalAudioSource(_:sampleRate:channels:)) __deprecated_msg("use createCustomAudioTrack:config: instead.");
9130 
9158 - (int)setExternalAudioSource:(BOOL)enabled
9159  sampleRate:(NSInteger)sampleRate
9160  channels:(NSInteger)channels
9161  localPlayback:(BOOL)localPlayback
9162  publish:(BOOL)publish NS_SWIFT_NAME(setExternalAudioSource(_:sampleRate:channels:localPlayback:publish:)) __deprecated_msg("use createCustomAudioTrack:config: instead.");
9163 
9164 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
9165 
9174 - (int)setSpeakerphoneVolume:(NSUInteger)volume NS_SWIFT_NAME(setSpeakerphoneVolume(_:)) __deprecated_msg("use setDeviceVolume:volume: instead.");
9175 
9176 - (int)startScreenCapture:(NSUInteger)windowId
9177  withCaptureFreq:(NSInteger)captureFreq
9178  bitRate:(NSInteger)bitRate
9179  andRect:(CGRect)rect NS_SWIFT_NAME(startScreenCapture(_:withCaptureFreq:bitRate:andRect:)) __deprecated_msg("use startScreenCaptureByWindowId:regionRect:captureParams: instead.");
9180 #endif
9181 
9187 + (NSString * _Nonnull)getMediaEngineVersion NS_SWIFT_NAME(getMediaEngineVersion()) __deprecated;
9188 
9189 
9208 - (int)setVideoResolution:(CGSize)size andFrameRate:(NSInteger)frameRate bitrate:(NSInteger)bitrate NS_SWIFT_NAME(setVideoResolution(_:andFrameRate:bitrate:)) __deprecated_msg("use setVideoEncoderConfiguration: instead.");
9209 
9218 - (void)leaveChannelBlock:(void(^ _Nullable)(AgoraChannelStats * _Nonnull stat))leaveChannelBlock NS_SWIFT_NAME(leaveChannelBlock(_:)) __deprecated_msg("use delegate instead.");
9219 
9236 - (int)setLocalRenderMode:(NSUInteger)uid
9237  mode:(AgoraVideoRenderMode)mode NS_SWIFT_NAME(setLocalRenderMode(_:mode:)) __deprecated;
9238 
9249 - (int)enableExternalAudioSourceLocalPlayback:(BOOL)enable NS_SWIFT_NAME(enableExternalAudioSourceLocalPlayback(_:)) __deprecated;;
9250 
9251 - (int)startMultipleVideoStreams:(VIEW_CLASS * _Nonnull)view screen:(VIEW_CLASS * _Nonnull)screenView remotes:(NSArray * _Nullable)remoteViews NS_SWIFT_NAME(startMultipleVideoStreams(_:screen:remotes:)) __deprecated;;
9252 
9258 - (void)addDelegate:(id<AgoraRtcEngineDelegate> _Nonnull)delegate NS_SWIFT_NAME(addDelegate(_:));
9259 
9265 - (void)removeDelegate:(id<AgoraRtcEngineDelegate> _Nonnull)delegate NS_SWIFT_NAME(removeDelegate(_:));
9266 
9267 @end
-[AgoraRtcEngineKit enableAudio]
int enableAudio()
Enables the audio module.
AgoraAudioTrackType
AgoraAudioTrackType
The type of the audio track.
Definition: AgoraEnumerates.h:5299
AgoraRtcEngineKit::delegate
id< AgoraRtcEngineDelegate > _Nullable delegate
Sets and retrieves AgoraRtcEngineDelegate.
Definition: AgoraRtcEngineKit.h:67
AgoraRecorderStreamInfo
Information about the audio and video streams to be recorded.
Definition: AgoraObjects.h:3923
AgoraRtcEngineKit
Provides all methods that can be invoked by your application.
Definition: AgoraRtcEngineKit.h:57
AgoraRtcMediaPlayerCacheManagerProtocol.h
-[AgoraRtcEngineKit getNetworkType]
int getNetworkType()
Gets the type of the local network connection.
-[AgoraRtcEngineKit queryDeviceScore]
int queryDeviceScore()
Queries device score.
-[AgoraRtcEngineKit enableInstantMediaRendering]
int enableInstantMediaRendering()
Enables audio and video frame instant rendering.
-[AgoraRtcEngineKit cameraMaxZoomFactor]
CGFloat cameraMaxZoomFactor()
Gets the maximum zoom ratio supported by the camera.
-[AgoraRtcEngineKit stopChannelMediaRelay]
int stopChannelMediaRelay()
Stops the media stream relay. Once the relay stops, the host quits all the target channels.
AgoraMediaMetadataDelegate.h
-[AgoraRtcEngineKit getConnectionState]
AgoraConnectionState getConnectionState()
Gets the current connection state of the SDK.
AgoraEncodedVideoTrackOptions
Definition: AgoraObjects.h:345
AgoraRtcChannelMediaOptions
The channel media options.
Definition: AgoraObjects.h:383
AgoraAudioScenario
AgoraAudioScenario
The audio scenarios.
Definition: AgoraEnumerates.h:1928
AgoraEarMonitoringFilterType
AgoraEarMonitoringFilterType
The audio filter types of in-ear monitoring.
Definition: AgoraEnumerates.h:4751
AgoraRhythmPlayerConfig
The metronome configuration.
Definition: AgoraObjects.h:4067
AgoraBeautyOptions
Image enhancement options.
Definition: AgoraObjects.h:3040
AgoraVideoSubscriptionOptions
Video subscription options.
Definition: AgoraObjects.h:3902
AgoraMediaRecorder
The media recorder class.
Definition: AgoraMediaRecorder.h:22
AgoraRtcMediaPlayerProtocol.h
AgoraAudioTrackConfig
The configuration of custom audio tracks.
Definition: AgoraObjects.h:4457
AgoraClientRole
AgoraClientRole
The user role in the interactive live streaming.
Definition: AgoraEnumerates.h:795
AgoraScreenCaptureParameters2
Screen sharing configurations.
Definition: AgoraObjects.h:3572
AgoraHeadphoneEQPreset
AgoraHeadphoneEQPreset
Preset headphone equalizer types.
Definition: AgoraEnumerates.h:2388
AgoraVideoModule
AgoraVideoModule
Definition: AgoraEnumerates.h:5454
AgoraAudioTrackVolumeInfo
Definition: AgoraObjects.h:1259
AgoraVideoFrameDelegate.h
AUDIO_AINS_MODE
AUDIO_AINS_MODE
AI noise suppression modes.
Definition: AgoraEnumerates.h:5321
AgoraRdtStreamType
AgoraRdtStreamType
Reliable Data Transmission Tunnel message stream type.
Definition: AgoraEnumerates.h:5540
-[AgoraRtcEngineKit startMediaRenderingTracing]
int startMediaRenderingTracing()
Enables tracing the video frame rendering process.
-[AgoraRtcEngineKit switchCamera]
int switchCamera()
Switches between front and rear cameras.
AgoraFeatureType
AgoraFeatureType
The type of the advanced feature.
Definition: AgoraEnumerates.h:5443
AgoraFaceShapeAreaOptions
Filter effect options.
Definition: AgoraObjects.h:3077
AgoraCameraStabilizationMode
AgoraCameraStabilizationMode
Camera stabilization modes.
Definition: AgoraEnumerates.h:3789
AgoraFaceInfoDelegate.h
AgoraVideoFrame
The external video frame.
Definition: AgoraObjects.h:2193
AgoraSimulcastStreamConfig
The configuration of the low-quality video stream.
Definition: AgoraObjects.h:3651
AgoraLocalAudioMixerConfiguration
The configurations for mixing the local audio.
Definition: AgoraObjects.h:3364
AgoraVoiceConversionPreset
AgoraVoiceConversionPreset
The options for SDK preset voice conversion effects.
Definition: AgoraEnumerates.h:2311
AgoraScreenCaptureParameters
Screen sharing configurations.
Definition: AgoraObjects.h:3410
AgoraAudioRawFrameOperationMode
AgoraAudioRawFrameOperationMode
The use mode of the audio data.
Definition: AgoraEnumerates.h:2019
+[AgoraRtcEngineKit destroy]
void destroy()
Releases the AgoraRtcEngineKit instance.
AgoraMediaRecorder.h
AgoraSegmentationProperty
Processing properties for background images.
Definition: AgoraObjects.h:3245
AgoraSimulcastConfig
Configure video streams of different quality levels.
Definition: AgoraObjects.h:3701
AgoraVoiceAITunerType
AgoraVoiceAITunerType
Voice AI tuner sound types.
Definition: AgoraEnumerates.h:2406
AgoraContentInspectConfig
Screenshot and upload configuration.
Definition: AgoraObjects.h:3828
AgoraAudioEncodedFrameDelegateConfig
Observer settings for the encoded audio.
Definition: AgoraObjects.h:3791
AgoraDirectCdnStreamingMediaOptions
The media setting options for the host.
Definition: AgoraObjects.h:297
AgoraH265TranscoderProtocol.h
AgoraAudioTrackObserver-p
Definition: AgoraRtcEngineKit.h:29
AgoraAudioProfile
AgoraAudioProfile
The audio profile.
Definition: AgoraEnumerates.h:1884
AgoraVideoDenoiserOptions
Video noise reduction options.
Definition: AgoraObjects.h:3141
AgoraLastmileProbeConfig
Configurations of the last-mile network test.
Definition: AgoraObjects.h:769
-[AgoraRtcEngineKit stopLocalVideoTranscoder]
int stopLocalVideoTranscoder()
Stops the local video mixing.
AgoraFaceShapeArea
AgoraFaceShapeArea
Chooses the specific facial areas that need to be adjusted.
Definition: AgoraEnumerates.h:2890
-[AgoraRtcEngineKit stopLastmileProbeTest]
int stopLastmileProbeTest()
Stops the last mile network probe test.
WatermarkOptions
Watermark image configurations.
Definition: AgoraObjects.h:1724
AgoraVideoSourceType
AgoraVideoSourceType
The type of the video source.
Definition: AgoraEnumerates.h:4233
-[AgoraRtcEngineKit createMediaPlayerCacheManager]
id< AgoraRtcMediaPlayerCacheManagerProtocol > _Nullable createMediaPlayerCacheManager()
Creates one AgoraRtcMediaPlayerCacheManagerProtocol instance.
-[AgoraRtcEngineKit stopScreenCapture]
int stopScreenCapture()
Stops screen capture.
-[AgoraRtcEngineKit getCurrentMonotonicTimeInMs]
int64_t getCurrentMonotonicTimeInMs()
Gets the current Monotonic Time of the SDK.
-[AgoraRtcEngineKit stopDirectCdnStreaming]
int stopDirectCdnStreaming()
Stops pushing media streams to the CDN directly.
AgoraQoEPreferenceType
AgoraQoEPreferenceType
Definition: AgoraEnumerates.h:4078
AgoraVideoRotation
AgoraVideoRotation
Definition: AgoraEnumerates.h:1402
VIEW_CLASS
UIView VIEW_CLASS
Definition: AgoraObjects.h:14
AgoraChannelProfile
AgoraChannelProfile
The channel profile.
Definition: AgoraEnumerates.h:764
-[AgoraRtcEngineKit uploadLogFile]
NSString *_Nullable uploadLogFile()
-[AgoraRtcEngineKit pauseAllChannelMediaRelay]
int pauseAllChannelMediaRelay()
Pauses the media stream relay to all target channels.
-[AgoraRtcEngineKit stopPreview]
int stopPreview()
AgoraLeaveChannelOptions
The options for leaving a channel.
Definition: AgoraObjects.h:2631
AgoraDataStreamConfig
The configurations for the data stream.
Definition: AgoraObjects.h:2917
AgoraMediaRecorderDelegate.h
AgoraLoopbackAudioTrackConfig
Definition: AgoraObjects.h:4723
-[AgoraRtcEngineKit stopLocalAudioMixer]
int stopLocalAudioMixer()
Stops the local audio mixing.
-[AgoraRtcEngineKit getH265Transcoder]
id< AgoraH265TranscoderProtocol >_Nullable getH265Transcoder()
AgoraUserInfo
The information of the user.
Definition: AgoraObjects.h:2821
AgoraRtcAudioSpectrumDelegate.h
AgoraVoiceBeautifierPreset
AgoraVoiceBeautifierPreset
The options for SDK preset voice beautifier effects.
Definition: AgoraEnumerates.h:2107
-[AgoraRtcEngineKit disableAudioSpectrumMonitor]
int disableAudioSpectrumMonitor()
Disables audio spectrum monitoring.
AgoraRtcEngineConfig
Configurations for the AgoraRtcEngineConfig instance.
Definition: AgoraObjects.h:2392
AgoraMediaMetadataDataSource.h
AgoraImageTrackOptions
Image configurations.
Definition: AgoraObjects.h:4131
AgoraVideoRenderMode
AgoraVideoRenderMode
Video display modes.
Definition: AgoraEnumerates.h:1340
AgoraAudioEncodedFrameDelegate.h
AgoraVideoEffectObject.h
AgoraEncryptionConfig
Built-in encryption configurations.
Definition: AgoraObjects.h:2787
AgoraAudioFrameDelegate.h
AgoraEncodedVideoFrameInfo
Information about externally encoded video frames.
Definition: AgoraObjects.h:3942
AgoraChannelMediaRelayConfiguration
Configuration of cross channel media relay.
Definition: AgoraObjects.h:2969
AgoraVideoStreamType
AgoraVideoStreamType
The type of video streams.
Definition: AgoraEnumerates.h:1277
-[AgoraRtcEngineKit stopPlaybackDeviceTest]
int stopPlaybackDeviceTest()
Stops the audio playback device test.
AgoraEchoTestConfiguration
The configuration of the audio and video call loop test.
Definition: AgoraObjects.h:4232
AgoraConnectionState
AgoraConnectionState
Connection states.
Definition: AgoraEnumerates.h:2659
AgoraHDRCapability
AgoraHDRCapability
Definition: AgoraEnumerates.h:5463
-[AgoraRtcEngineKit getCallId]
NSString *_Nullable getCallId()
Retrieves the call ID.
AgoraAdvancedAudioOptions
The advanced options for audio.
Definition: AgoraObjects.h:4119
AgoraScreenScenarioType
AgoraScreenScenarioType
The screen sharing scenario.
Definition: AgoraEnumerates.h:4102
AgoraEncodedVideoFrameDelegate.h
-[AgoraRtcEngineKit getFaceShapeBeautyOptions]
AgoraFaceShapeBeautyOptions *_Nullable getFaceShapeBeautyOptions()
Gets the beauty effect options.
-[AgoraRtcEngineKit resumeAllChannelMediaRelay]
int resumeAllChannelMediaRelay()
Resumes the media stream relay to all target channels.
AgoraObjects.h
AgoraLocalAccessPointConfiguration
Local Access Point configuration.
Definition: AgoraObjects.h:4028
AgoraConstants.h
-[AgoraRtcEngineKit disableAudio]
int disableAudio()
Disables the audio module.
-[AgoraRtcEngineKit stopRhythmPlayer]
int stopRhythmPlayer()
Disables the virtual metronome.
-[AgoraRtcEngineKit createCustomVideoTrack]
unsigned int createCustomVideoTrack()
Creates a custom video track.
-[AgoraRtcEngineKit disableVideo]
int disableVideo()
Disables the video module.
AgoraFaceShapeBeautyOptions
The facial enhancement style options.
Definition: AgoraObjects.h:3093
+[AgoraRtcEngineKit getSdkVersion]
NSString *_Nonnull getSdkVersion()
Gets the SDK version.
AgoraVirtualBackgroundSource
The custom background.
Definition: AgoraObjects.h:3203
AgoraRtcMediaPlayerDelegate.h
-[AgoraRtcEngineKit startPreview]
int startPreview()
Enables the local video preview.
AgoraSnapshotConfig
The snapshot configuration.
Definition: AgoraObjects.h:3856
AgoraLowlightEnhanceOptions
The low-light enhancement options.
Definition: AgoraObjects.h:3158
AgoraSimulcastStreamMode
AgoraSimulcastStreamMode
The mode in which the video stream is sent.
Definition: AgoraEnumerates.h:4321
__deprecated
#define __deprecated
Definition: AgoraBase.h:74
AgoraDirectCdnStreamingEventDelegate.h
AgoraExternalVideoSourceType
AgoraExternalVideoSourceType
The external video frame encoding type.
Definition: AgoraEnumerates.h:4307
-[AgoraRtcEngineKit getAudioTrackCount]
int getAudioTrackCount()
Gets the index of audio tracks of the current music file.
AgoraLocalTranscoderConfiguration
The configuration of the video mixing on the local client.
Definition: AgoraObjects.h:3385
AgoraRtcVideoCanvas
Attributes of the video canvas object.
Definition: AgoraObjects.h:685
AgoraRtcEngineDelegate.h
AgoraApplicationScenarioType
AgoraApplicationScenarioType
The video application scenarios.
Definition: AgoraEnumerates.h:4007
AgoraAudioRecordingConfiguration
Recording configurations.
Definition: AgoraObjects.h:3603
AgoraMetadataType
AgoraMetadataType
Metadata type of the observer. We only support video metadata for now.
Definition: AgoraEnumerates.h:3489
AgoraColorEnhanceOptions
The color enhancement options.
Definition: AgoraObjects.h:3175
-[AgoraRtcEngineKit getNtpWallTimeInMs]
uint64_t getNtpWallTimeInMs()
Gets the current NTP (Network Time Protocol) time.
AgoraClientRoleOptions
Setting of user role properties.
Definition: AgoraObjects.h:2837
AgoraMediaSourceType
AgoraMediaSourceType
Media source type.
Definition: AgoraEnumerates.h:4129
AgoraNetworkQuality
AgoraNetworkQuality
Network quality types.
Definition: AgoraEnumerates.h:1170
-[AgoraRtcEngineKit stopRecordingDeviceTest]
int stopRecordingDeviceTest()
Stops the audio capturing device test.
WatermarkConfig
Used to configure watermark-related information.
Definition: AgoraObjects.h:1793
-[AgoraRtcEngineKit queryCameraFocalLengthCapability]
NSArray< AgoraFocalLengthInfo * > *_Nullable queryCameraFocalLengthCapability()
Queries the focal length capability supported by the camera.
AgoraCameraCapturerConfiguration
The camera capturer preference.
Definition: AgoraObjects.h:2850
AgoraCloudProxyType
AgoraCloudProxyType
The cloud proxy type.
Definition: AgoraEnumerates.h:909
-[AgoraRtcEngineKit enableVideo]
int enableVideo()
Enables the video module.
AgoraScreenCaptureFrameRateCapability
AgoraScreenCaptureFrameRateCapability
The highest frame rate supported by the screen sharing device.
Definition: AgoraEnumerates.h:5280
AgoraExtensionInfo
Definition: AgoraObjects.h:4421
-[AgoraRtcEngineKit queryCodecCapability]
NSArray< AgoraVideoCodecCapInfo * > *_Nullable queryCodecCapability()
Queries the video codec capabilities of the SDK.
AgoraLogLevel
AgoraLogLevel
The output log level of the SDK.
Definition: AgoraEnumerates.h:3512
AgoraChannelStats
Statistics of a call session.
Definition: AgoraObjects.h:1269
-[AgoraRtcEngineKit queryScreenCaptureCapability]
AgoraScreenCaptureFrameRateCapability queryScreenCaptureCapability()
Queries the highest frame rate supported by the device during screen sharing.