8 #import <Foundation/Foundation.h>
44 - (BOOL)onRecordAudioFrame:(
AgoraAudioFrame* _Nonnull)frame channelId:(NSString * _Nonnull)channelId NS_SWIFT_NAME(onRecordAudioFrame(_:channelId:));
61 - (BOOL)onPlaybackAudioFrame:(
AgoraAudioFrame* _Nonnull)frame channelId:(NSString * _Nonnull)channelId NS_SWIFT_NAME(onPlaybackAudioFrame(_:channelId:));
78 - (BOOL)onMixedAudioFrame:(
AgoraAudioFrame* _Nonnull)frame channelId:(NSString * _Nonnull)channelId NS_SWIFT_NAME(onMixedAudioFrame(_:channelId:));
87 - (BOOL)onEarMonitoringAudioFrame:(
AgoraAudioFrame* _Nonnull)frame NS_SWIFT_NAME(onEarMonitoringAudioFrame(_:));
105 - (BOOL)onPlaybackAudioFrameBeforeMixing:(
AgoraAudioFrame* _Nonnull)frame channelId:(NSString * _Nonnull)channelId uid:(NSUInteger)uid NS_SWIFT_NAME(onPlaybackAudioFrame(beforeMixing:channelId:uid:));
143 - (AgoraAudioParams* _Nonnull)getMixedAudioParams NS_SWIFT_NAME(getMixedAudioParams());
166 - (AgoraAudioParams* _Nonnull)getRecordAudioParams NS_SWIFT_NAME(getRecordAudioParams());
188 - (AgoraAudioParams* _Nonnull)getPlaybackAudioParams NS_SWIFT_NAME(getPlaybackAudioParams());
211 - (AgoraAudioParams* _Nonnull)getEarMonitoringAudioParams NS_SWIFT_NAME(getEarMonitoringAudioParams());
221 - (void)onRecordEncodedAudioFrame:(NSData* _Nonnull)frameData info:(
AgoraEncodedAudioFrameInfo* _Nonnull)info NS_SWIFT_NAME(onRecordEncodedAudioFrame(_:info:));
226 - (void)onPlaybackEncodedAudioFrame:(NSData* _Nonnull)frameData info:(
AgoraEncodedAudioFrameInfo* _Nonnull)info NS_SWIFT_NAME(onPlaybackEncodedAudioFrame(_:info:));
231 - (void)onMixedEncodedAudioFrame:(NSData* _Nonnull)frameData info:(
AgoraEncodedAudioFrameInfo* _Nonnull)info NS_SWIFT_NAME(onMixedEncodedAudioFrame(_:info:));
241 - (BOOL)onEncodedVideoFrameReceived:(NSData * _Nonnull )videoData length:(
size_t)length info:(
AgoraEncodedVideoFrameInfo * _Nonnull)videoFrameInfo NS_SWIFT_NAME(onEncodedVideoFrameReceived(_:length:info:));
285 - (BOOL)onTranscodedVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame NS_SWIFT_NAME(onTranscodedVideoFrame(_:));
304 - (BOOL)onRenderVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame uid:(NSUInteger)uid channelId:(NSString * _Nonnull)channelId NS_SWIFT_NAME(onRenderVideoFrame(_:uid:channelId:));
325 - (BOOL)onMediaPlayerVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame mediaPlayerId:(NSInteger)mediaPlayerId NS_SWIFT_NAME(onMediaPlayerVideoFrame(_:mediaPlayerId:));
375 - (BOOL)onCaptureVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame NS_SWIFT_NAME(onCapture(_:)) __attribute__((availability(ios,deprecated=7_0,message="Use onCaptureVideoFrame:sourceType: instead.")));
376 - (BOOL)onSecondaryCameraCaptureVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame NS_SWIFT_NAME(onSecondaryCameraCapture(_:)) __attribute__((availability(ios,deprecated=7_0,message="Use onCaptureVideoFrame:sourceType: instead.")));
377 - (BOOL)onScreenCaptureVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame NS_SWIFT_NAME(onScreenCapture(_:)) __attribute__((availability(ios,deprecated=7_0,message="Use onCaptureVideoFrame:sourceType: instead.")));
378 - (BOOL)onSecondaryScreenCaptureVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame NS_SWIFT_NAME(onSecondaryScreenCapture(_:)) __attribute__((availability(ios,deprecated=7_0,message="Use onCaptureVideoFrame:sourceType: instead.")));
379 - (BOOL)onPreEncodeVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame NS_SWIFT_NAME(onPreEncode(_:)) __attribute__((availability(ios,deprecated=7_0,message="Use onPreEncodeVideoFrame:sourceType: instead.")));
380 - (BOOL)onPreEncodeScreenVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame NS_SWIFT_NAME(onPreEncodeScreenVideoFrame(_:)) __attribute__((availability(ios,deprecated=7_0,message="Use onPreEncodeVideoFrame:sourceType: instead.")));
383 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
384 - (BOOL)onCaptureVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame NS_SWIFT_NAME(onCapture(_:)) __attribute__((availability(macos,deprecated=10_9,message="Use onCaptureVideoFrame:sourceType: instead.")));
385 - (BOOL)onSecondaryCameraCaptureVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame NS_SWIFT_NAME(onSecondaryCameraCapture(_:)) __attribute__((availability(macos,deprecated=10_9,message="Use onCaptureVideoFrame:sourceType: instead.")));
386 - (BOOL)onScreenCaptureVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame NS_SWIFT_NAME(onScreenCapture(_:)) __attribute__((availability(macos,deprecated=10_9,message="Use onCaptureVideoFrame:sourceType: instead.")));
387 - (BOOL)onSecondaryScreenCaptureVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame NS_SWIFT_NAME(onSecondaryScreenCapture(_:)) __attribute__((availability(macos,deprecated=10_9,message="Use onCaptureVideoFrame:sourceType: instead.")));
388 - (BOOL)onPreEncodeVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame NS_SWIFT_NAME(onPreEncode(_:)) __attribute__((availability(macos,deprecated=10_9,message="Use onPreEncodeVideoFrame:sourceType: instead.")));
389 - (BOOL)onPreEncodeScreenVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame NS_SWIFT_NAME(onPreEncodeScreenVideoFrame(_:)) __attribute__((availability(macos,deprecated=10_9,message="Use onPreEncodeVideoFrame:sourceType: instead.")));
421 didChangedToPosition:(NSInteger)position NS_SWIFT_NAME(AgoraRtcMediaPlayer(_:didChangedTo:));
432 elapsedTime:(NSInteger)elapsedTime
433 message:(NSString *_Nullable)message NS_SWIFT_NAME(AgoraRtcMediaPlayer(_:didOccur:elapsedTime:message:));
447 didReceiveData:(NSString *_Nullable)data
448 length:(NSInteger)length NS_SWIFT_NAME(AgoraRtcMediaPlayer(_:didReceiveData:length:));
457 didPlayBufferUpdated:(NSInteger)playCachedBuffer NS_SWIFT_NAME(AgoraRtcMediaPlayer(_:didPlayBufferUpdated:));
495 volumeIndicationDidReceive:(NSInteger)volume NS_SWIFT_NAME(AgoraRtcMediaPlayer(_:volumeIndicationDidReceive:));
512 didReceiveVideoFrame:(
AgoraOutputVideoFrame * _Nonnull)videoFrame NS_SWIFT_NAME(AgoraRtcMediaPlayer(_:didReceiveVideoFrame:));
525 didReceivePixelBuffer:(CVPixelBufferRef _Nonnull)pixelBuffer NS_SWIFT_NAME(AgoraRtcMediaPlayer(_:didReceivePixelBuffer:));
549 didReceiveAudioFrame:(
AgoraAudioFrame* _Nonnull)audioFrame NS_SWIFT_NAME(AgoraRtcMediaPlayer(_:didReceiveAudioFrame:));
570 message:(NSString *_Nullable)message NS_SWIFT_NAME(onDirectCdnStreamingStateChanged(_:error:message:));
606 - (NSData * _Nullable)readyToSendMetadataAtTimestamp:(NSTimeInterval)timestamp sourceType:(
AgoraVideoSourceType)sourceType NS_SWIFT_NAME(readyToSendMetadata(atTimestamp:sourceType:));
622 - (void)receiveMetadata:(NSData * _Nonnull)data fromUser:(NSInteger)uid atTimestamp:(NSTimeInterval)timestamp NS_SWIFT_NAME(receiveMetadata(_:fromUser:atTimestamp:));
635 #pragma mark Delegate Methods
645 #pragma mark Core Delegate Methods
659 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine didOccurError:(AgoraErrorCode)errorCode NS_SWIFT_NAME(rtcEngine(_:didOccurError:));
665 - (void)rtcEngineMediaEngineDidLoaded:(
AgoraRtcEngineKit * _Nonnull)engine NS_SWIFT_NAME(rtcEngineMediaEngineDidLoaded(_:));
671 - (void)rtcEngineMediaEngineDidStartCall:(
AgoraRtcEngineKit * _Nonnull)engine NS_SWIFT_NAME(rtcEngineMediaEngineDidStartCall(_:));
687 - (void)rtcEngineRequestToken:(
AgoraRtcEngineKit * _Nonnull)engine NS_SWIFT_NAME(rtcEngineRequestToken(_:));
702 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine tokenPrivilegeWillExpire:(NSString *_Nonnull)token NS_SWIFT_NAME(rtcEngine(_:tokenPrivilegeWillExpire:));
717 - (void)rtcEngineConnectionDidInterrupted:(
AgoraRtcEngineKit * _Nonnull)engine NS_SWIFT_NAME(rtcEngineConnectionDidInterrupted(_:));
728 - (void)rtcEngineConnectionDidLost:(
AgoraRtcEngineKit * _Nonnull)engine NS_SWIFT_NAME(rtcEngineConnectionDidLost(_:));
737 - (void)rtcEngineConnectionDidBanned:(
AgoraRtcEngineKit * _Nonnull)engine NS_SWIFT_NAME(rtcEngineConnectionDidBanned(_:));
815 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
829 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine device:(NSString * _Nonnull)deviceId type:(AgoraMediaDeviceType)deviceType stateChanged:(NSInteger)state NS_SWIFT_NAME(rtcEngine(_:device:type:stateChanged:));
844 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine uploadLogResultRequestId:(NSString * _Nonnull)requestId success:(BOOL)success reason:(
AgoraUploadErrorReason)reason NS_SWIFT_NAME(rtcEngine(_:uploadLogResultRequestId:success:reason:));
846 #pragma mark Local User Core Delegate Methods
861 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine didJoinChannel:(NSString * _Nonnull)channel withUid:(NSUInteger)uid elapsed:(NSInteger)elapsed NS_SWIFT_NAME(rtcEngine(_:didJoinChannel:withUid:elapsed:));
876 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine didRejoinChannel:(NSString * _Nonnull)channel withUid:(NSUInteger)uid elapsed:(NSInteger)elapsed NS_SWIFT_NAME(rtcEngine(_:didRejoinChannel:withUid:elapsed:));
924 #pragma mark Local User Audio Delegate Methods
936 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine firstLocalAudioFramePublished:(NSInteger)elapsed NS_SWIFT_NAME(rtcEngine(_:firstLocalAudioFramePublished:));
969 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine didAudioRouteChanged:(AgoraAudioOutputRouting)routing NS_SWIFT_NAME(rtcEngine(_:didAudioRouteChanged:));
977 - (void)rtcEngineLocalAudioMixingDidFinish:(
AgoraRtcEngineKit * _Nonnull)engine NS_SWIFT_NAME(rtcEngineLocalAudioMixingDidFinish(_:));
986 - (void)rtcEngineDidAudioEffectFinish:(
AgoraRtcEngineKit * _Nonnull)engine soundId:(
int)soundId NS_SWIFT_NAME(rtcEngineDidAudioEffectFinish(_:soundId:));
989 #pragma mark Local User Video Delegate Methods
1001 - (void)rtcEngineCameraDidReady:(
AgoraRtcEngineKit * _Nonnull)engine NS_SWIFT_NAME(rtcEngineCameraDidReady(_:));
1003 #if TARGET_OS_IPHONE
1010 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine cameraFocusDidChangedToRect:(CGRect)rect NS_SWIFT_NAME(rtcEngine(_:cameraFocusDidChangedTo:));
1017 - (void)rtcEngine:(
AgoraRtcEngineKit* _Nonnull)engine cameraExposureDidChangedToRect:(CGRect)rect NS_SWIFT_NAME(rtcEngine(_:cameraExposureDidChangedTo:));
1027 - (void)rtcEngineVideoDidStop:(
AgoraRtcEngineKit * _Nonnull)engine NS_SWIFT_NAME(rtcEngineVideoDidStop(_:));
1034 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine firstLocalVideoFramePublishedWithElapsed:(NSInteger)elapsed sourceType:(
AgoraVideoSourceType)sourceType NS_SWIFT_NAME(rtcEngine(_:firstLocalVideoFramePublishedWithElapsed:sourceType:));
1045 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine firstLocalVideoFrameWithSize:(CGSize)size elapsed:(NSInteger)elapsed sourceType:(
AgoraVideoSourceType)sourceType NS_SWIFT_NAME(rtcEngine(_:firstLocalVideoFrameWith:elapsed:sourceType:));
1061 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine localVideoStats:(AgoraRtcLocalVideoStats * _Nonnull)stats sourceType:(
AgoraVideoSourceType)sourceType NS_SWIFT_NAME(rtcEngine(_:localVideoStats:sourceType:));
1073 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine didLocalPublishFallbackToAudioOnly:(BOOL)isFallbackOrRecover NS_SWIFT_NAME(rtcEngine(_:didLocalPublishFallbackToAudioOnly:));
1086 #pragma mark Remote User Core Delegate Methods
1112 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine didJoinedOfUid:(NSUInteger)uid elapsed:(NSInteger)elapsed NS_SWIFT_NAME(rtcEngine(_:didJoinedOfUid:elapsed:));
1142 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine receiveStreamMessageFromUid:(NSUInteger)uid streamId:(NSInteger)streamId data:(NSData * _Nonnull)data NS_SWIFT_NAME(rtcEngine(_:receiveStreamMessageFromUid:streamId:data:));
1156 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine didOccurStreamMessageErrorFromUid:(NSUInteger)uid streamId:(NSInteger)streamId error:(NSInteger)error missed:(NSInteger)missed cached:(NSInteger)cached NS_SWIFT_NAME(rtcEngine(_:didOccurStreamMessageErrorFromUid:streamId:error:missed:cached:));
1159 #pragma mark Remote User Audio Delegate Methods
1173 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine firstRemoteAudioFrameOfUid:(NSUInteger)uid elapsed:(NSInteger)elapsed NS_SWIFT_NAME(rtcEngine(_:firstRemoteAudioFrameOfUid:elapsed:));
1194 - (void)rtcEngine:(
AgoraRtcEngineKit* _Nonnull)engine firstRemoteAudioFrameDecodedOfUid:(NSUInteger)uid elapsed:(NSInteger)elapsed NS_SWIFT_NAME(rtcEngine(_:firstRemoteAudioFrameDecodedOfUid:elapsed:)) __deprecated_msg("use rtcEngine:remoteAudioStateChangedOfUid:state:reason:elapsed: instead.");
1212 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine didAudioMuted:(BOOL)muted byUid:(NSUInteger)uid NS_SWIFT_NAME(rtcEngine(_:didAudioMuted:byUid:));
1246 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine reportAudioVolumeIndicationOfSpeakers:(NSArray<
AgoraRtcAudioVolumeInfo *> * _Nonnull)speakers totalVolume:(NSInteger)totalVolume NS_SWIFT_NAME(rtcEngine(_:reportAudioVolumeIndicationOfSpeakers:totalVolume:));
1265 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine activeSpeaker:(NSUInteger)speakerUid NS_SWIFT_NAME(rtcEngine(_:activeSpeaker:));
1273 - (void)rtcEngineRemoteAudioMixingDidStart:(
AgoraRtcEngineKit * _Nonnull)engine NS_SWIFT_NAME(rtcEngineRemoteAudioMixingDidStart(_:));
1279 - (void)rtcEngineRemoteAudioMixingDidFinish:(
AgoraRtcEngineKit * _Nonnull)engine NS_SWIFT_NAME(rtcEngineRemoteAudioMixingDidFinish(_:));
1289 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine audioQualityOfUid:(NSUInteger)uid quality:(
AgoraNetworkQuality)quality delay:(NSUInteger)delay lost:(NSUInteger)lost NS_SWIFT_NAME(rtcEngine(_:audioQualityOfUid:quality:delay:lost:));
1301 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine audioTransportStatsOfUid:(NSUInteger)uid delay:(NSUInteger)delay lost:(NSUInteger)lost rxKBitRate:(NSUInteger)rxKBitRate NS_SWIFT_NAME(rtcEngine(_:audioTransportStatsOfUid:delay:lost:rxKBitRate:));
1307 - (void)rtcEngineIntraRequestReceived:(
AgoraRtcEngineKit *_Nonnull)engine NS_SWIFT_NAME(rtcEngineIntraRequestReceived(_:));
1331 - (void)rtcEngine:(
AgoraRtcEngineKit *_Nonnull)engine didAudioSubscribeStateChange:(NSString * _Nonnull)channelId
1332 uid:(
unsigned int)uid
1335 elapseSinceLastState:(
int)elapseSinceLastState NS_SWIFT_NAME(rtcEngine(_:didAudioSubscribeStateChange:uid:oldState:newState:elapseSinceLastState:));
1345 - (void)rtcEngine:(
AgoraRtcEngineKit *_Nonnull)engine didAudioPublishStateChange:(NSString * _Nonnull)channelId
1348 elapseSinceLastState:(
int)elapseSinceLastState NS_SWIFT_NAME(rtcEngine(_:didAudioPublishStateChange:oldState:newState:elapseSinceLastState:));
1350 #pragma mark String UID
1358 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine didLocalUserRegisteredWithUserId:(NSUInteger)uid userAccount:(NSString * _Nonnull)userAccount NS_SWIFT_NAME(rtcEngine(_:didLocalUserRegisteredWithUserId:userAccount:));
1369 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine didUserInfoUpdatedWithUserId:(NSUInteger)uid userInfo:(
AgoraUserInfo* _Nonnull)userInfo NS_SWIFT_NAME(rtcEngine(_:didUserInfoUpdatedWithUserId:userInfo:));
1371 #pragma mark Rhythm Player Delegates Methods
1374 errorCode:(
AgoraRhythmPlayerError)errorCode NS_SWIFT_NAME(rtcEngine(_:didRhythmPlayerStateChanged:errorCode:));
1376 #pragma mark Local Video Transcoder Delegates Methods
1384 errorCode:(
AgoraVideoTranscoderError)errorCode NS_SWIFT_NAME(rtcEngine(_:didLocalVideoTranscoderErrorWithStream:errorCode:));
1386 #pragma mark Remote User Video Delegates Methods
1408 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine firstRemoteVideoDecodedOfUid:(NSUInteger)uid size:(CGSize)size elapsed:(NSInteger)elapsed NS_SWIFT_NAME(rtcEngine(_:firstRemoteVideoDecodedOfUid:size:elapsed:)) __deprecated_msg("use rtcEngine:remoteVideoStateChangedOfUid:state:reason: instead.");
1417 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine firstRemoteVideoFrameOfUid:(NSUInteger)uid size:(CGSize)size elapsed:(NSInteger)elapsed NS_SWIFT_NAME(rtcEngine(_:firstRemoteVideoFrameOfUid:size:elapsed:));
1427 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine videoSizeChangedOfSourceType:(
AgoraVideoSourceType)sourceType uid:(NSUInteger)uid size:(CGSize)size rotation:(NSInteger)rotation NS_SWIFT_NAME(rtcEngine(_:videoSizeChangedOf:uid:size:rotation:));
1429 - (void)rtcEngine:(
AgoraRtcEngineKit* _Nonnull)engine snapshotTaken:(NSUInteger)uid filePath:(NSString* _Nonnull)filePath width:(NSInteger)width height:(NSInteger)height errCode:(NSInteger)errCode NS_SWIFT_NAME(rtcEngine(_:snapshotTaken:filePath:width:height:errCode:));
1455 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine remoteVideoStateChangedOfUid:(NSUInteger)uid state:(AgoraVideoRemoteState)state reason:(
AgoraVideoRemoteReason)reason elapsed:(NSInteger)elapsed NS_SWIFT_NAME(rtcEngine(_:remoteVideoStateChangedOfUid:state:reason:elapsed:));
1501 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine didVideoMuted:(BOOL)muted byUid:(NSUInteger)uid NS_SWIFT_NAME(rtcEngine(_:didVideoMuted:byUid:)) __deprecated_msg("use rtcEngine:remoteVideoStateChangedOfUid:state:reason: instead.");
1517 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine didVideoEnabled:(BOOL)enabled byUid:(NSUInteger)uid NS_SWIFT_NAME(rtcEngine(_:didVideoEnabled:byUid:));
1529 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine didLocalVideoEnabled:(BOOL)enabled byUid:(NSUInteger)uid NS_SWIFT_NAME(rtcEngine(_:didLocalVideoEnabled:byUid:)) __deprecated_msg("use rtcEngine:remoteVideoStateChangedOfUid:state:reason: instead.");
1539 - (void)rtcEngine:(
AgoraRtcEngineKit* _Nonnull)engine didProxyConnected:(NSString* _Nonnull)channel withUid:(NSUInteger)uid proxyType:(
AgoraProxyType)proxyType localProxyIp:(NSString* _Nonnull)localProxyIp elapsed:(NSInteger)elapsed NS_SWIFT_NAME(rtcEngine(_:didProxyConnected:withUid:proxyType:localProxyIp:elapsed:));
1548 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine remoteUserStateChangedOfUid:(NSUInteger)uid state:(NSUInteger)state NS_SWIFT_NAME(rtcEngine(_:remoteUserStateChangedOfUid:state:));
1576 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine didRemoteSubscribeFallbackToAudioOnly:(BOOL)isFallbackOrRecover byUid:(NSUInteger)uid NS_SWIFT_NAME(rtcEngine(_:didRemoteSubscribeFallbackToAudioOnly:byUid:));
1588 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine videoTransportStatsOfUid:(NSUInteger)uid delay:(NSUInteger)delay lost:(NSUInteger)lost rxKBitRate:(NSUInteger)rxKBitRate NS_SWIFT_NAME(rtcEngine(_:videoTransportStatsOfUid:delay:lost:rxKBitRate:));
1600 - (void)rtcEngine:(
AgoraRtcEngineKit *_Nonnull)engine didVideoSubscribeStateChange:(NSString * _Nonnull)channelId
1601 uid:(
unsigned int)uid
1604 elapseSinceLastState:(
int)elapseSinceLastState NS_SWIFT_NAME(rtcEngine(_:didVideoSubscribeStateChange:uid:oldState:newState:elapseSinceLastState:));
1616 - (void)rtcEngine:(
AgoraRtcEngineKit *_Nonnull)engine didVideoPublishStateChange:(NSString * _Nonnull)channelId
1620 elapseSinceLastState:(
int)elapseSinceLastState NS_SWIFT_NAME(rtcEngine(_:didVideoPublishStateChange:sourceType:oldState:newState:elapseSinceLastState:));
1622 #pragma mark Stream Publish Delegate Methods
1657 - (void)rtcEngine:(
AgoraRtcEngineKit* _Nonnull)engine rtmpStreamingEventWithUrl:(NSString* _Nonnull)url eventCode:(
AgoraRtmpStreamingEvent)eventCode NS_SWIFT_NAME(rtcEngine(_:rtmpStreamingEventWithUrl:eventCode:));
1666 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine streamPublishedWithUrl:(NSString * _Nonnull)url errorCode:(AgoraErrorCode)errorCode NS_SWIFT_NAME(rtcEngine(_:streamPublishedWithUrl:errorCode:));
1673 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine streamUnpublishedWithUrl:(NSString * _Nonnull)url NS_SWIFT_NAME(rtcEngine(_:streamUnpublishedWithUrl:));
1679 - (void)rtcEngineTranscodingUpdated:(
AgoraRtcEngineKit * _Nonnull)engine NS_SWIFT_NAME(rtcEngineTranscodingUpdated(_:));
1688 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine streamInjectedStatusOfUrl:(NSString * _Nonnull)url uid:(NSUInteger)uid status:(AgoraInjectStreamStatus)status NS_SWIFT_NAME(rtcEngine(_:streamInjectedStatusOfUrl:uid:status:));
1695 - (void)rtcEngine:(
AgoraRtcEngineKit *_Nonnull)engine audioMixingStateChanged:(AgoraAudioMixingStateType)state
1696 reasonCode:(AgoraAudioMixingReasonCode)reasonCode NS_SWIFT_NAME(rtcEngine(_:audioMixingStateChanged:reasonCode:));
1704 - (void)rtcEngine:(
AgoraRtcEngineKit *_Nonnull)engine audioMixingPositionChanged:(NSInteger)position NS_SWIFT_NAME(rtcEngine(_:audioMixingPositionChanged:));
1706 #if TARGET_OS_IPHONE
1707 #pragma mark Face Detection Delegate Methods
1735 - (void)rtcEngine:(
AgoraRtcEngineKit* _Nonnull)engine facePositionDidChangeWidth:(
int)width previewHeight:(
int)height faces:(NSArray<
AgoraFacePositionInfo*>* _Nullable)faces NS_SWIFT_NAME(rtcEngine(_:facePositionDidChangeWidth:previewHeight:faces:));
1738 #pragma mark - Unavailable Delegate Methods
1739 #if TARGET_OS_IPHONE
1740 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine localVideoStateChangedOfState:(
AgoraVideoLocalState)state error:(
AgoraLocalVideoStreamError)error NS_SWIFT_NAME(rtcEngine(_:localVideoStateChangedOf:error:)) __attribute__((availability(ios,deprecated=7_0,message="Use rtcEngine:localVideoStateChangedOfState:error:sourceType instead.")));
1742 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine localVideoStats:(AgoraRtcLocalVideoStats * _Nonnull)stats NS_SWIFT_NAME(rtcEngine(_:localVideoStats:)) __attribute__((availability(ios,deprecated=7_0,message="Use rtcEngine:localVideoStats:sourceType instead.")));
1744 - (void)rtcEngine:(
AgoraRtcEngineKit *_Nonnull)engine didVideoPublishStateChange:(NSString * _Nonnull)channelId
1747 elapseSinceLastState:(
int)elapseSinceLastState NS_SWIFT_NAME(rtcEngine(_:didVideoPublishStateChange:oldState:newState:elapseSinceLastState:)) __attribute__((availability(ios,deprecated=7_0,message="Use rtcEngine:didVideoPublishStateChange:sourceType:oldState:newState:elapseSinceLastState: instead.")));
1749 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine firstLocalVideoFramePublishedWithElapsed:(NSInteger)elapsed NS_SWIFT_NAME(rtcEngine(_:firstLocalVideoFramePublishedWithElapsed:)) __attribute__((availability(ios,deprecated=7_0,message="Use rtcEngine:firstLocalVideoFramePublishedWithElapsed:sourceType: instead.")));
1751 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine videoSizeChangedOfUid:(NSUInteger)uid size:(CGSize)size rotation:(NSInteger)rotation NS_SWIFT_NAME(rtcEngine(_:videoSizeChangedOfUid:size:rotation:)) __attribute__((availability(ios,deprecated=7_0,message="Use rtcEngine:videoSizeChangedOfSourceType:uid:size:rotation instead.")));
1754 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
1755 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine localVideoStateChangedOfState:(
AgoraVideoLocalState)state error:(
AgoraLocalVideoStreamError)error NS_SWIFT_NAME(rtcEngine(_:localVideoStateChangedOf:error:)) __attribute__((availability(macos,deprecated=10_9,message="Use rtcEngine:localVideoStateChangedOfState:error:sourceType instead.")));
1757 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine localVideoStats:(AgoraRtcLocalVideoStats * _Nonnull)stats NS_SWIFT_NAME(rtcEngine(_:localVideoStats:)) __attribute__((availability(macos,deprecated=10_9,message="Use rtcEngine:localVideoStats:sourceType instead.")));
1759 - (void)rtcEngine:(
AgoraRtcEngineKit *_Nonnull)engine didVideoPublishStateChange:(NSString * _Nonnull)channelId
1762 elapseSinceLastState:(
int)elapseSinceLastState NS_SWIFT_NAME(rtcEngine(_:didVideoPublishStateChange:oldState:newState:elapseSinceLastState:)) __attribute__((availability(macos,deprecated=10_9,message="Use rtcEngine:didVideoPublishStateChange:sourceType:oldState:newState:elapseSinceLastState: instead.")));
1764 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine firstLocalVideoFramePublishedWithElapsed:(NSInteger)elapsed NS_SWIFT_NAME(rtcEngine(_:firstLocalVideoFramePublishedWithElapsed:)) __attribute__((availability(macos,deprecated=10_9,message="Use rtcEngine:firstLocalVideoFramePublishedWithElapsed:sourceType: instead.")));
1766 - (void)rtcEngine:(
AgoraRtcEngineKit * _Nonnull)engine videoSizeChangedOfUid:(NSUInteger)uid size:(CGSize)size rotation:(NSInteger)rotation NS_SWIFT_NAME(rtcEngine(_:videoSizeChangedOfUid:size:rotation:)) __attribute__((availability(macos,deprecated=10_9,message="Use rtcEngine:videoSizeChangedOfSourceType:uid:size:rotation instead.")));
1770 #pragma mark - AgoraRtcEngineKit
1784 #pragma mark Core Methods
1797 @property(nonatomic, weak) id<AgoraRtcEngineDelegate> _Nullable
delegate;
1837 - (int)preloadChannelByToken:(NSString * _Nullable)token
1838 channelId:(NSString * _Nonnull)channelId
1839 uid:(NSUInteger)uid NS_SWIFT_NAME(preloadChannel(byToken:channelId:uid:));
1881 - (int)preloadChannelByToken:(NSString * _Nullable)token
1882 channelId:(NSString * _Nonnull)channelId
1883 userAccount:(NSString * _Nonnull)userAccount NS_SWIFT_NAME(preloadChannel(byToken:channelId:userAccount:));
1904 - (int)updatePreloadChannelToken:(NSString * _Nonnull)token NS_SWIFT_NAME(updatePreloadChannelToken(_:));
1968 - (int)joinChannelByToken:(NSString * _Nullable)token
1969 channelId:(NSString * _Nonnull)channelId
1970 info:(NSString * _Nullable)info
1972 joinSuccess:(
void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannel(byToken:channelId:info:uid:joinSuccess:));
2034 - (int)joinChannelByToken:(NSString * _Nullable)token
2035 channelId:(NSString * _Nonnull)channelId
2038 joinSuccess:(
void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannel(byToken:channelId:uid:mediaOptions:joinSuccess:));
2040 - (int)startMultipleVideoStreams:(
VIEW_CLASS * _Nonnull)view screen:(
VIEW_CLASS * _Nonnull)screenView remotes:(NSArray * _Nullable)remoteViews NS_SWIFT_NAME(startMultipleVideoStreams(_:screen:remotes:));
2068 - (int)leaveChannel:(
void(^ _Nullable)(
AgoraChannelStats * _Nonnull stat))leaveChannelBlock NS_SWIFT_NAME(leaveChannel(_:));
2097 leaveChannelBlock:(void (^ _Nullable)(
AgoraChannelStats * _Nonnull))leaveChannelBlock NS_SWIFT_NAME(leaveChannel(_:leaveChannelBlock:));
2116 - (int)setChannelProfile:(
AgoraChannelProfile)profile NS_SWIFT_NAME(setChannelProfile(_:));
2143 - (int)setClientRole:(
AgoraClientRole)role NS_SWIFT_NAME(setClientRole(_:));
2190 - (int)renewToken:(NSString * _Nonnull)token NS_SWIFT_NAME(renewToken(_:));
2250 - (int)startChannelMediaRelay:(
AgoraChannelMediaRelayConfiguration * _Nonnull)config NS_SWIFT_NAME(startChannelMediaRelay(_:)) __deprecated_msg(
"use startOrUpdateChannelMediaRelay instead.");
2273 - (int)updateChannelMediaRelay:(
AgoraChannelMediaRelayConfiguration * _Nonnull)config NS_SWIFT_NAME(updateChannelMediaRelay(_:)) __deprecated_msg(
"use startOrUpdateChannelMediaRelay instead.");
2328 - (int)enableWirelessAccelerate:(BOOL)enabled NS_SWIFT_NAME(enableWirelessAccelerate(_:));
2378 - (int)enableWebSdkInteroperability:(BOOL)enabled NS_SWIFT_NAME(enableWebSdkInteroperability(_:))
__deprecated;
2394 + (instancetype _Nonnull)sharedEngineWithAppId:(NSString * _Nonnull)appId
2438 #pragma mark Core Audio
2495 - (int)enableLocalAudio:(BOOL)enabled NS_SWIFT_NAME(enableLocalAudio(_:));
2512 - (int)setAudioProfile:(
AgoraAudioProfile)profile NS_SWIFT_NAME(setAudioProfile(_:));
2514 - (int)setAudioScenario:(
AgoraAudioScenario)scenario NS_SWIFT_NAME(setAudioScenario(_:));
2537 - (int)enableAudioVolumeIndication:(NSInteger)interval
2538 smooth:(NSInteger)smooth
2539 reportVad:(BOOL)reportVad NS_SWIFT_NAME(enableAudioVolumeIndication(_:smooth:reportVad:));
2542 #if TARGET_OS_IPHONE
2560 - (int)setEnableSpeakerphone:(BOOL)enableSpeaker NS_SWIFT_NAME(setEnableSpeakerphone(_:));
2571 - (BOOL)isSpeakerphoneEnabled NS_SWIFT_NAME(isSpeakerphoneEnabled());
2600 - (int)setDefaultAudioRouteToSpeakerphone:(BOOL)defaultToSpeaker NS_SWIFT_NAME(setDefaultAudioRouteToSpeakerphone(_:));
2614 - (int)adjustRecordingSignalVolume:(NSInteger)volume NS_SWIFT_NAME(adjustRecordingSignalVolume(_:));
2627 - (int)adjustPlaybackSignalVolume:(NSInteger)volume NS_SWIFT_NAME(adjustPlaybackSignalVolume(_:));
2648 - (int)adjustUserPlaybackSignalVolume:(NSUInteger)uid volume:(int)volume NS_SWIFT_NAME(adjustUserPlaybackSignalVolume(_:volume:));
2658 - (int)muteRecordingSignal:(BOOL)muted NS_SWIFT_NAME(muteRecordingSignal(_:));
2670 - (int)muteLocalAudioStream:(BOOL)mute NS_SWIFT_NAME(muteLocalAudioStream(_:));
2685 - (int)muteRemoteAudioStream:(NSUInteger)uid mute:(BOOL)mute NS_SWIFT_NAME(muteRemoteAudioStream(_:mute:));
2712 - (int)muteAllRemoteAudioStreams:(BOOL)mute NS_SWIFT_NAME(muteAllRemoteAudioStreams(_:));
2728 - (int)setDefaultMuteAllRemoteAudioStreams:(BOOL)mute NS_SWIFT_NAME(setDefaultMuteAllRemoteAudioStreams(_:))
__deprecated;
2742 - (int)registerExtensionWithVendor:(NSString * __nonnull)provider
2743 extension:(NSString * __nonnull)extension
2744 sourceType:(
AgoraMediaSourceType)sourceType NS_SWIFT_NAME(registerExtension(withVendor:extension:sourceType:));
2765 - (int)enableExtensionWithVendor:(NSString * __nonnull)provider extension:(NSString * __nonnull)extension enabled:(BOOL)enabled NS_SWIFT_NAME(enableExtension(withVendor:extension:enabled:));
2787 - (int)enableExtensionWithVendor:(NSString * __nonnull)provider
2788 extension:(NSString * __nonnull)extension
2789 enabled:(BOOL)enabled
2790 sourceType:(
AgoraMediaSourceType)sourceType NS_SWIFT_NAME(enableExtension(withVendor:extension:enabled:sourceType:));
2812 - (int)enableExtensionWithVendor:(NSString * __nonnull)provider
2813 extension:(NSString * __nonnull)extension
2815 enabled:(BOOL)enabled NS_SWIFT_NAME(enableExtension(withVendor:extension:extensionInfo:enabled:));
2828 - (int)setExtensionProviderPropertyWithVendor:(NSString * __nonnull)provider
2829 key:(NSString * __nonnull)key
2830 value:(NSString * __nonnull)value NS_SWIFT_NAME(setExtensionProviderPropertyWithVendor(_:key:value:));
2842 - (int)setExtensionPropertyWithVendor:(NSString * __nonnull)provider
2843 extension:(NSString * __nonnull)extension
2844 key:(NSString * __nonnull)key
2845 value:(NSString * __nonnull)value NS_SWIFT_NAME(setExtensionPropertyWithVendor(_:extension:key:value:));
2860 - (int)setExtensionPropertyWithVendor:(NSString * __nonnull)provider
2861 extension:(NSString * __nonnull)extension
2862 key:(NSString * __nonnull)key
2863 value:(NSString * __nonnull)value
2864 sourceType:(
AgoraMediaSourceType)sourceType NS_SWIFT_NAME(setExtensionPropertyWithVendor(_:extension:key:value:sourceType:));
2878 - (int)setExtensionPropertyWithVendor:(NSString * __nonnull)provider
2879 extension:(NSString * __nonnull)extension
2881 key:(NSString * __nonnull)key
2882 value:(NSString * __nonnull)value NS_SWIFT_NAME(setExtensionPropertyWithVendor(_:extension:extensionInfo:key:value:));
2894 - (NSString * _Nullable)getExtensionPropertyWithVendor:(NSString * __nonnull)provider
2895 extension:(NSString * __nonnull)extension
2896 key:(NSString * __nonnull)key NS_SWIFT_NAME(getExtensionProperty(withVendor:extension:key:));
2909 - (NSString * _Nullable)getExtensionPropertyWithVendor:(NSString * __nonnull)provider
2910 extension:(NSString * __nonnull)extension
2911 key:(NSString * __nonnull)key
2912 sourceType:(
AgoraMediaSourceType)sourceType NS_SWIFT_NAME(getExtensionProperty(withVendor:extension:key:sourceType:));
2925 - (NSString * _Nullable)getExtensionPropertyWithVendor:(NSString * __nonnull)provider
2926 extension:(NSString * __nonnull)extension
2928 key:(NSString * __nonnull)key NS_SWIFT_NAME(getExtensionProperty(withVendor:extension:extensionInfo:key:));
2930 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
2952 - (int)enableLoopbackRecording:(BOOL)enabled deviceName:(NSString* _Nullable)deviceName NS_SWIFT_NAME(enableLoopbackRecording(_:deviceName:));
2966 - (int)adjustLoopbackSignalVolume:(NSInteger)volume NS_SWIFT_NAME(adjustLoopbackSignalVolume(_:));
2974 - (int)getLoopbackRecordingVolume NS_SWIFT_NAME(getLoopbackRecordingVolume());
2978 #pragma mark Core Video
3038 - (int)enableLocalVideo:(BOOL)enabled NS_SWIFT_NAME(enableLocalVideo(_:));
3063 - (int)setVideoEncoderConfiguration:(AgoraVideoEncoderConfiguration * _Nonnull)config NS_SWIFT_NAME(setVideoEncoderConfiguration(_:));
3085 - (int)setupLocalVideo:(
AgoraRtcVideoCanvas * _Nullable)local NS_SWIFT_NAME(setupLocalVideo(_:));
3090 - (int)setLocalVideoMirrorMode:(AgoraVideoMirrorMode)mode NS_SWIFT_NAME(setLocalVideoMirrorMode(_:))
__deprecated;
3095 - (int)setLocalRenderMode:(NSUInteger)uid
3117 mirror:(AgoraVideoMirrorMode)mirror NS_SWIFT_NAME(setLocalRenderMode(_:mirror:));
3176 - (int)setupRemoteVideo:(
AgoraRtcVideoCanvas * _Nonnull)remote NS_SWIFT_NAME(setupRemoteVideo(_:));
3187 - (int)setRemoteRenderMode:(NSUInteger)uid
3189 mirror:(AgoraVideoMirrorMode)mirror NS_SWIFT_NAME(setRemoteRenderMode(_:mode:mirror:));
3204 - (int)muteLocalVideoStream:(BOOL)mute NS_SWIFT_NAME(muteLocalVideoStream(_:));
3231 - (int)muteAllRemoteVideoStreams:(BOOL)mute NS_SWIFT_NAME(muteAllRemoteVideoStreams(_:));
3247 - (int)setDefaultMuteAllRemoteVideoStreams:(BOOL)mute NS_SWIFT_NAME(setDefaultMuteAllRemoteVideoStreams(_:))
__deprecated;
3264 - (int)muteRemoteVideoStream:(NSUInteger)uid
3265 mute:(BOOL)mute NS_SWIFT_NAME(muteRemoteVideoStream(_:mute:));
3280 - (int)setBeautyEffectOptions:(BOOL)enable options:(
AgoraBeautyOptions* _Nullable)options NS_SWIFT_NAME(setBeautyEffectOptions(_:options:));
3296 - (int)setBeautyEffectOptions:(BOOL)enable options:(
AgoraBeautyOptions* _Nullable)options sourceType:(
AgoraMediaSourceType)sourceType NS_SWIFT_NAME(setBeautyEffectOptions(_:options:sourceType:));
3322 - (int)setVideoDenoiserOptions:(BOOL)enable options:(
AgoraVideoDenoiserOptions* _Nullable)options NS_SWIFT_NAME(setVideoDenoiserOptions(_:options:));
3375 - (int)setLowlightEnhanceOptions:(BOOL)enable options:(
AgoraLowlightEnhanceOptions* _Nullable)options NS_SWIFT_NAME(setLowlightEnhanceOptions(_:options:));
3428 - (int)setColorEnhanceOptions:(BOOL)enable options:(
AgoraColorEnhanceOptions* _Nullable)options NS_SWIFT_NAME(setColorEnhanceOptions(_:options:));
3569 #pragma mark Audio Effect
3585 - (int)setLocalVoicePitch:(
double)pitch NS_SWIFT_NAME(setLocalVoicePitch(_:));
3596 - (int)setLocalVoiceFormant:(
double)formantRatio;
3605 - (int)setLocalVoiceEqualizationOfBandFrequency:(AgoraAudioEqualizationBandFrequency)bandFrequency withGain:(NSInteger)gain NS_SWIFT_NAME(setLocalVoiceEqualizationOf(_:withGain:));
3614 - (int)setLocalVoiceReverbOfType:(AgoraAudioReverbType)reverbType withValue:(NSInteger)value NS_SWIFT_NAME(setLocalVoiceReverbOf(_:withValue:));
3616 #pragma mark Audio Effect Playback
3646 - (int)preloadEffect:(
int)soundId
3647 filePath:(NSString* _Nonnull)filePath NS_SWIFT_NAME(preloadEffect(_:filePath:));
3674 - (int)preloadEffect:(
int)soundId
3675 filePath:(NSString* _Nonnull)filePath
3676 startPos:(
int)startPos NS_SWIFT_NAME(preloadEffect(_:filePath:startPos:));
3701 - (int)playEffect:(
int)soundId
3702 filePath:(NSString* _Nonnull)filePath
3703 loopCount:(NSInteger)loopCount
3706 gain:(NSInteger)gain NS_SWIFT_NAME(playEffect(_:filePath:loopCount:pitch:pan:gain:));
3732 - (int)playEffect:(
int)soundId
3733 filePath:(NSString* _Nonnull)filePath
3734 loopCount:(NSInteger)loopCount
3737 gain:(NSInteger)gain
3738 startPos:(
int)startPos NS_SWIFT_NAME(playEffect(_:filePath:loopCount:pitch:pan:gain:startPos:));
3771 - (int)playEffect:(
int)soundId
3772 filePath:(NSString* _Nonnull)filePath
3773 loopCount:(NSInteger)loopCount
3776 gain:(NSInteger)gain
3777 publish:(BOOL)publish NS_SWIFT_NAME(playEffect(_:filePath:loopCount:pitch:pan:gain:publish:));
3811 - (int)playEffect:(
int)soundId
3812 filePath:(NSString* _Nonnull)filePath
3813 loopCount:(NSInteger)loopCount
3816 gain:(NSInteger)gain
3817 publish:(BOOL)publish
3818 startPos:(int)startPos NS_SWIFT_NAME(playEffect(_:filePath:loopCount:pitch:pan:gain:publish:startPos:));
3850 - (int)playAllEffectsWithLoopCount:(NSInteger)loopCount
3853 gain:(NSInteger)gain
3854 publish:(BOOL)publish NS_SWIFT_NAME(playAllEffects(withLoopCount:pitch:pan:gain:publish:));
3863 - (int)getEffectsVolume NS_SWIFT_NAME(getEffectsVolume());
3874 - (int)setEffectsVolume:(NSInteger)volume NS_SWIFT_NAME(setEffectsVolume(_:));
3886 - (int)setVolumeOfEffect:(
int)soundId
3887 withVolume:(int)volume NS_SWIFT_NAME(setVolumeOfEffect(_:withVolume:));
3898 - (int)getVolumeOfEffect:(
int)soundId NS_SWIFT_NAME(getVolumeOfEffect(_:));
3907 - (int)pauseEffect:(
int)soundId NS_SWIFT_NAME(pauseEffect(_:));
3914 - (int)pauseAllEffects NS_SWIFT_NAME(pauseAllEffects());
3923 - (int)resumeEffect:(
int)soundId NS_SWIFT_NAME(resumeEffect(_:));
3930 - (int)resumeAllEffects NS_SWIFT_NAME(resumeAllEffects());
3939 - (int)stopEffect:(
int)soundId NS_SWIFT_NAME(stopEffect(_:));
3947 - (int)stopAllEffects NS_SWIFT_NAME(stopAllEffects());
3965 - (int)getEffectDuration:(NSString* _Nonnull)filePath NS_SWIFT_NAME(getEffectDuration(_:));
3980 - (int)setEffectPosition:(
int)soundId pos:(NSInteger)pos NS_SWIFT_NAME(setEffectPosition(_:pos:));
3991 - (int)getEffectCurrentPosition:(
int)soundId NS_SWIFT_NAME(getEffectCurrentPosition(_:));
4003 - (int)unloadEffect:(
int)soundId NS_SWIFT_NAME(unloadEffect(_:));
4011 - (int)unloadAllEffects NS_SWIFT_NAME(unloadAllEffects());
4013 #pragma mark beautifier effect
4090 - (int)setAudioEffectPreset:(AgoraAudioEffectPreset)preset NS_SWIFT_NAME(setAudioEffectPreset(_:));
4207 - (int)setAudioEffectParameters:(AgoraAudioEffectPreset)preset param1:(int)param1 param2:(
int)param2 NS_SWIFT_NAME(setAudioEffectParameters(_:param1:param2:));
4251 - (int)setVoiceBeautifierParameters:(
AgoraVoiceBeautifierPreset)preset param1:(int)param1 param2:(
int)param2 NS_SWIFT_NAME(setVoiceBeautifierParameters(_:param1:param2:));
4265 - (int)setVoiceConversionParameters:(
AgoraVoiceConversionPreset)preset param1:(int)param1 param2:(
int)param2 NS_SWIFT_NAME(setVoiceConversionParameters(_:param1:param2:));
4287 - (int)setHeadphoneEQParameters:(
int)lowGain highGain:(int)highGain NS_SWIFT_NAME(setHeadphoneEQParameters(_:highGain:));
4289 #pragma mark Sound Position Indication
4309 - (int)enableSoundPositionIndication:(BOOL)enabled NS_SWIFT_NAME(enableSoundPositionIndication(_:));
4334 - (int)setRemoteVoicePosition:(NSUInteger)uid pan:(double)pan gain:(
double)gain NS_SWIFT_NAME(setRemoteVoicePosition(_:pan:gain:));
4346 - (int)enableSpatialAudio:(BOOL)enabled NS_SWIFT_NAME(enableSpatialAudio(_:));
4363 - (int)setRemoteUserSpatialAudioParams:(NSUInteger)uid
4364 params:(AgoraSpatialAudioParams* _Nonnull)params NS_SWIFT_NAME(setRemoteUserSpatialAudioParams(_:params:));
4366 #pragma mark Audio Noise Suppression
4377 - (int)setAINSMode:(BOOL)enabled mode:(
AUDIO_AINS_MODE)mode NS_SWIFT_NAME(setAINSMode(_:mode:));
4379 #pragma mark Audio Mixing
4417 - (int)startAudioMixing:(NSString * _Nonnull)filePath
4418 loopback:(BOOL)loopback
4419 cycle:(NSInteger)cycle NS_SWIFT_NAME(startAudioMixing(_:loopback:cycle:));
4453 - (int)startAudioMixing:(NSString * _Nonnull)filePath
4454 loopback:(BOOL)loopback
4455 cycle:(NSInteger)cycle
4456 startPos:(NSInteger)startPos NS_SWIFT_NAME(startAudioMixing(_:loopback:cycle:startPos:));
4467 - (int)stopAudioMixing NS_SWIFT_NAME(stopAudioMixing());
4477 - (int)pauseAudioMixing NS_SWIFT_NAME(pauseAudioMixing());
4488 - (int)resumeAudioMixing NS_SWIFT_NAME(resumeAudioMixing());
4498 - (int)selectAudioTrack:(NSInteger)index NS_SWIFT_NAME(selectAudioTrack(_:));
4519 - (int)adjustAudioMixingVolume:(NSInteger)volume NS_SWIFT_NAME(adjustAudioMixingVolume(_:));
4530 - (int)adjustAudioMixingPublishVolume:(NSInteger)volume NS_SWIFT_NAME(adjustAudioMixingPublishVolume(_:));
4540 - (int)getAudioMixingPublishVolume NS_SWIFT_NAME(getAudioMixingPublishVolume());
4550 - (int)adjustAudioMixingPlayoutVolume:(NSInteger)volume NS_SWIFT_NAME(adjustAudioMixingPlayoutVolume(_:));
4560 - (int)getAudioMixingPlayoutVolume NS_SWIFT_NAME(getAudioMixingPlayoutVolume());
4572 - (int)getAudioMixingDuration NS_SWIFT_NAME(getAudioMixingDuration());
4582 - (int)getAudioMixingCurrentPosition NS_SWIFT_NAME(getAudioMixingCurrentPosition());
4594 - (int)setAudioMixingPosition:(NSInteger)pos NS_SWIFT_NAME(setAudioMixingPosition(_:));
4606 - (int)setAudioMixingDualMonoMode:(AgoraAudioMixingDualMonoMode)mode NS_SWIFT_NAME(setAudioMixingDualMonoMode(_:));
4617 - (int)setAudioMixingPitch:(NSInteger)pitch NS_SWIFT_NAME(setAudioMixingPitch(_:));
4619 #pragma mark Audio Recording
4641 - (int)startAudioRecording:(NSString * _Nonnull)filePath
4642 quality:(AgoraAudioRecordingQuality)quality NS_SWIFT_NAME(startAudioRecording(_:quality:));
4677 - (int)stopAudioRecording NS_SWIFT_NAME(stopAudioRecording());
4679 #pragma mark Echo Test
4698 - (int)startEchoTest:(
void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))successBlock NS_SWIFT_NAME(startEchoTest(_:));
4716 - (int)startEchoTestWithInterval:(NSInteger)interval
4717 successBlock:(void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))successBlock NS_SWIFT_NAME(startEchoTest(withInterval:successBlock:));
4735 - (int)stopEchoTest NS_SWIFT_NAME(stopEchoTest());
4738 #pragma mark Miscellaneous Audio Control
4755 - (int)enableInEarMonitoring:(BOOL)enabled NS_SWIFT_NAME(enable(inEarMonitoring:));
4768 - (int)enableInEarMonitoring:(BOOL)enabled includeAudioFilters:(
AgoraEarMonitoringFilterType)includeAudioFilters NS_SWIFT_NAME(enable(inEarMonitoring:includeAudioFilters:));
4781 - (int)setInEarMonitoringVolume:(NSInteger)volume NS_SWIFT_NAME(setInEarMonitoringVolume(_:));
4783 #if TARGET_OS_IPHONE
4793 - (void)setAudioSessionOperationRestriction:(AgoraAudioSessionOperationRestriction)restriction NS_SWIFT_NAME(setAudioSessionOperationRestriction(_:));
4797 #pragma mark Dual Video Mode
4816 - (int)enableDualStreamMode:(BOOL)enabled NS_SWIFT_NAME(enableDualStreamMode(_:)) __deprecated_msg(
"use setDualStreamMode: instead.");
4836 - (int)enableDualStreamMode:(BOOL)enabled
4837 streamConfig:(
AgoraSimulcastStreamConfig* _Nonnull)streamConfig NS_SWIFT_NAME(enableDualStreamMode(_:streamConfig:)) __deprecated_msg(
"use setDualStreamMode: instead.");
4887 - (int)setRemoteVideoStream:(NSUInteger)uid
4900 - (int)setRemoteVideoSubscriptionOptions:(NSUInteger)uid
4912 - (int)setRemoteDefaultVideoStreamType:(
AgoraVideoStreamType)streamType NS_SWIFT_NAME(setRemoteDefaultVideoStreamType(_:));
4914 #pragma mark Subscribe Blocklist / Allowlist
4929 - (int)setSubscribeAudioBlocklist:(NSArray <NSNumber *> *_Nonnull)blocklist NS_SWIFT_NAME(setSubscribeAudioBlocklist(_:));
4946 - (int)setSubscribeAudioAllowlist:(NSArray <NSNumber *> *_Nonnull)allowlist NS_SWIFT_NAME(setSubscribeAudioAllowlist(_:));
4961 - (int)setSubscribeVideoBlocklist:(NSArray <NSNumber *> *_Nonnull)blocklist NS_SWIFT_NAME(setSubscribeVideoBlocklist(_:));
4978 - (int)setSubscribeVideoAllowlist:(NSArray <NSNumber *> *_Nonnull)allowlist NS_SWIFT_NAME(setSubscribeVideoAllowlist(_:));
4980 #pragma mark Stream Fallback
5004 - (int)setLocalPublishFallbackOption:(AgoraStreamFallbackOptions)option NS_SWIFT_NAME(setLocalPublishFallbackOption(_:));
5017 - (int)setRemoteSubscribeFallbackOption:(AgoraStreamFallbackOptions)option NS_SWIFT_NAME(setRemoteSubscribeFallbackOption(_:));
5030 - (int)setHighPriorityUserList:(NSArray <NSNumber *> *_Nullable)uidList
5031 option:(AgoraStreamFallbackOptions)option;
5033 #pragma mark Video Quality Control
5050 - (int)setVideoQualityParameters:(BOOL)preferFrameRateOverImageQuality NS_SWIFT_NAME(setVideoQualityParameters(_:));
5052 #pragma mark External Media Source
5078 - (void)setExternalVideoSource:(BOOL)enable useTexture:(BOOL)useTexture sourceType:(
AgoraExternalVideoSourceType)sourceType NS_SWIFT_NAME(setExternalVideoSource(_:useTexture:sourceType:));
5099 - (void)setExternalVideoSource:(BOOL)enable useTexture:(BOOL)useTexture
5101 encodedVideoTrackOption:(
AgoraEncodedVideoTrackOptions* _Nonnull)encodedVideoTrackOption NS_SWIFT_NAME(setExternalVideoSource(_:useTexture:sourceType:encodedVideoTrackOption:));
5116 - (int)pushExternalEncodedVideoFrame:(NSData* _Nonnull)frame
5136 - (BOOL)pushExternalVideoFrame:(
AgoraVideoFrame * _Nonnull)frame NS_SWIFT_NAME(pushExternalVideoFrame(_:));
5155 - (
unsigned int)createCustomEncodedVideoTrack:(
AgoraEncodedVideoTrackOptions* _Nonnull)encodedVideoTrackOption NS_SWIFT_NAME(createCustomEncodedVideoTrack(_:));
5165 - (int)destroyCustomVideoTrack:(NSUInteger)videoTrackId NS_SWIFT_NAME(destroyCustomVideoTrack(_:));
5175 - (int)destroyCustomEncodedVideoTrack:(NSUInteger)videoTrackId NS_SWIFT_NAME(destroyCustomEncodedVideoTrack(_:));
5177 #pragma mark External Audio Data
5191 - (void)enableExternalAudioSink:(BOOL)enabled
5192 sampleRate:(NSUInteger)sampleRate
5193 channels:(NSUInteger)channels NS_SWIFT_NAME(enableExternalAudioSink(_:sampleRate:channels:));
5211 - (BOOL)pullPlaybackAudioFrameRawData:(
void * _Nonnull)data
5212 lengthInByte:(NSUInteger)lengthInByte NS_SWIFT_NAME(pullPlaybackAudioFrameRawData(_:lengthInByte:));
5232 - (CMSampleBufferRef _Nullable)pullPlaybackAudioFrameSampleBufferByLengthInByte:(NSUInteger)lengthInByte NS_SWIFT_NAME(pullPlaybackAudioFrameSampleBufferBy(lengthInByte:));
5262 - (int)destroyCustomAudioTrack:(NSInteger)trackId;
5278 - (int)enableCustomAudioLocalPlayback:(NSInteger)trackId enabled:(BOOL)enabled NS_SWIFT_NAME(enableCustomAudioLocalPlayback(_:enabled:));
5289 - (int)pushExternalAudioFrameRawData:(
void * _Nonnull)data
5290 samples:(NSInteger)samples
5291 trackId:(NSInteger)trackId
5292 timestamp:(NSTimeInterval)timestamp NS_SWIFT_NAME(pushExternalAudioFrameRawData(_:samples:trackId:timestamp:));
5307 - (int)pushExternalAudioFrameRawData:(
void* _Nonnull)data
5308 samples:(NSInteger)samples
5309 sampleRate:(NSInteger)sampleRate
5310 channels:(NSInteger)channels
5311 trackId:(NSInteger)trackId
5312 timestamp:(NSTimeInterval)timestamp NS_SWIFT_NAME(pushExternalAudioFrameRawData(_:samples:sampleRate:channels:trackId:timestamp:));
5321 - (int)pushExternalAudioFrameSampleBuffer:(CMSampleBufferRef _Nonnull)sampleBuffer NS_SWIFT_NAME(pushExternalAudioFrameSampleBuffer(_:));
5333 - (int)enableExternalAudioSourceLocalPlayback:(BOOL)enable NS_SWIFT_NAME(enableExternalAudioSourceLocalPlayback(_:));
5358 - (int)setRecordingAudioFrameParametersWithSampleRate:(NSInteger)sampleRate
5359 channel:(NSInteger)channel
5361 samplesPerCall:(NSInteger)samplesPerCall NS_SWIFT_NAME(setRecordingAudioFrameParametersWithSampleRate(_:channel:mode:samplesPerCall:));
5386 - (int)setPlaybackAudioFrameParametersWithSampleRate:(NSInteger)sampleRate
5387 channel:(NSInteger)channel
5389 samplesPerCall:(NSInteger)samplesPerCall NS_SWIFT_NAME(setPlaybackAudioFrameParametersWithSampleRate(_:channel:mode:samplesPerCall:));
5408 - (int)setMixedAudioFrameParametersWithSampleRate:(NSInteger)sampleRate
5409 channel:(NSInteger)channel
5410 samplesPerCall:(NSInteger)samplesPerCall NS_SWIFT_NAME(setMixedAudioFrameParametersWithSampleRate(_:channel:samplesPerCall:));
5436 - (int)setEarMonitoringAudioFrameParametersWithSampleRate:(NSInteger)sampleRate
5437 channel:(NSInteger)channel
5439 samplesPerCall:(NSInteger)samplesPerCall NS_SWIFT_NAME(setEarMonitoringAudioFrameParametersWithSampleRate(_:channel:mode:samplesPerCall:));
5455 - (int)setPlaybackAudioFrameBeforeMixingParametersWithSampleRate:(NSInteger)sampleRate
5456 channel:(NSInteger)channel NS_SWIFT_NAME(setPlaybackAudioFrameBeforeMixingParametersWithSampleRate(_:channel:));
5466 - (int)adjustCustomAudioPublishVolume:(NSInteger)trackId volume:(NSInteger)volume NS_SWIFT_NAME(adjustCustomAudioPublishVolume(_:volume:));
5477 - (int)adjustCustomAudioPlayoutVolume:(NSInteger)trackId volume:(NSInteger)volume NS_SWIFT_NAME(adjustCustomAudioPlayoutVolume(_:volume:));
5504 #pragma mark Audio spectrum monitor
5516 - (int)enableAudioSpectrumMonitor:(
int)intervalInMS NS_SWIFT_NAME(enableAudioSpectrumMonitor(_:));
5539 - (int)registerAudioSpectrumDelegate:(id<AgoraAudioSpectrumDelegate> _Nullable )
delegate NS_SWIFT_NAME(registerAudioSpectrumDelegate(_:));
5549 - (int)unregisterAudioSpectrumDelegate:(id<AgoraAudioSpectrumDelegate> _Nullable)
delegate NS_SWIFT_NAME(unregisterAudioSpectrumDelegate(_:));
5551 #pragma mark Built-in Encryption
5582 - (int)enableEncryption:(
bool)enabled encryptionConfig:(
AgoraEncryptionConfig * _Nonnull)config NS_SWIFT_NAME(enableEncryption(_:encryptionConfig:));
5585 #pragma mark Data Stream
5610 - (int)createDataStream:(NSInteger * _Nonnull)streamId
5611 reliable:(BOOL)reliable
5612 ordered:(BOOL)ordered NS_SWIFT_NAME(createDataStream(_:reliable:ordered:));
5622 - (int)createDataStream:(NSInteger * _Nonnull)streamId
5647 - (int)sendStreamMessage:(NSInteger)streamId
5648 data:(NSData * _Nonnull)data NS_SWIFT_NAME(sendStreamMessage(_:data:));
5650 #pragma mark Stream Publish
5669 - (int)startRtmpStreamWithoutTranscoding:(NSString* _Nonnull)url NS_SWIFT_NAME(startRtmpStreamWithoutTranscoding(_:));
5683 - (int)startRtmpStreamWithTranscoding:(NSString* _Nonnull)url transcoding:(AgoraLiveTranscoding* _Nullable)transcoding NS_SWIFT_NAME(startRtmpStream(withTranscoding:transcoding:));
5701 - (int)updateRtmpTranscoding:(AgoraLiveTranscoding* _Nullable)transcoding NS_SWIFT_NAME(updateRtmpTranscoding(_:));
5720 - (int)stopRtmpStream:(NSString* _Nonnull)url NS_SWIFT_NAME(stopRtmpStream(_:));
5722 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
5723 #pragma mark Screen Capture
5738 - (int)startScreenCapture:(
AgoraVideoSourceType)sourceType config:(AgoraScreenCaptureConfiguration * _Nullable)config NS_SWIFT_NAME(startScreenCapture(_:config:));
5770 - (int)startScreenCaptureByDisplayId:(UInt32)displayId
5771 regionRect:(CGRect)regionRect
5772 captureParams:(
AgoraScreenCaptureParameters *_Nonnull)captureParams NS_SWIFT_NAME(startScreenCapture(byDisplayId:regionRect:captureParams:));
5793 - (int)startScreenCaptureByWindowId:(UInt32)windowId
5794 regionRect:(CGRect)regionRect
5795 captureParams:(
AgoraScreenCaptureParameters *_Nonnull)captureParams NS_SWIFT_NAME(startScreenCapture(byWindowId:regionRect:captureParams:));
5806 - (int)updateScreenCaptureRegion:(CGRect)rect NS_SWIFT_NAME(updateScreenCaptureRegion(_:));
5817 - (int)updateScreenCaptureParameters:(
AgoraScreenCaptureParameters * _Nonnull)captureParams NS_SWIFT_NAME(updateScreenCaptureParameters(_:));
5849 - (NSArray<AgoraScreenCaptureSourceInfo*>* _Nullable)getScreenCaptureSourcesWithThumbSize:(NSSize)thumbSize iconSize:(NSSize)iconSize includeScreen:(BOOL)includeScreen NS_SWIFT_NAME(getScreenCaptureSources(withThumbSize:iconSize:includeScreen:));
5862 - (int)setScreenCaptureScenario:(
AgoraScreenScenarioType)scenarioType NS_SWIFT_NAME(setScreenCaptureScenario(_:));
5873 #if TARGET_OS_IPHONE
5919 #pragma mark Camera Control
5933 - (BOOL)isCameraZoomSupported NS_SWIFT_NAME(isCameraZoomSupported());
5949 - (CGFloat)setCameraZoomFactor:(CGFloat)zoomFactor NS_SWIFT_NAME(setCameraZoomFactor(_:));
5958 - (BOOL)isCameraFocusPositionInPreviewSupported NS_SWIFT_NAME(isCameraFocusPositionInPreviewSupported());
5967 - (BOOL)setCameraFocusPositionInPreview:(CGPoint)position NS_SWIFT_NAME(setCameraFocusPositionInPreview(_:));
5976 - (BOOL)isCameraExposurePositionSupported NS_SWIFT_NAME(isCameraExposurePositionSupported());
5985 - (BOOL)setCameraExposurePosition:(CGPoint)positionInView NS_SWIFT_NAME(setCameraExposurePosition(_:));
5995 - (BOOL)isCameraExposureSupported NS_SWIFT_NAME(isCameraExposureSupported());
6004 - (CGFloat)setCameraExposureFactor:(CGFloat)exposureFactor NS_SWIFT_NAME(setCameraExposureFactor(_:));
6026 - (BOOL)isCameraTorchSupported NS_SWIFT_NAME(isCameraTorchSupported());
6044 - (BOOL)setCameraTorchOn:(BOOL)isOn NS_SWIFT_NAME(setCameraTorchOn(_:));
6053 - (BOOL)isCameraAutoFocusFaceModeSupported NS_SWIFT_NAME(isCameraAutoFocusFaceModeSupported());
6066 - (BOOL)setCameraAutoFocusFaceModeEnabled:(BOOL)enable NS_SWIFT_NAME(setCameraAutoFocusFaceModeEnabled(_:));
6075 - (BOOL)isCameraAutoExposureFaceModeSupported NS_SWIFT_NAME(isCameraAutoExposureFaceModeSupported());
6088 - (BOOL)setCameraAutoExposureFaceModeEnabled:(BOOL)enable NS_SWIFT_NAME(setCameraAutoExposureFaceModeEnabled(_:));
6145 - (int)stopCameraCapture:(
AgoraVideoSourceType)sourceType NS_SWIFT_NAME(stopCameraCapture(_:));
6147 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
6148 #pragma mark macOS Device
6161 - (void)monitorDeviceChange:(BOOL)enabled NS_SWIFT_NAME(monitorDeviceChange(_:));
6175 - (NSArray<AgoraRtcDeviceInfo *> * _Nullable)enumerateDevices:(AgoraMediaDeviceType)type NS_SWIFT_NAME(enumerateDevices(_:));
6184 - (AgoraRtcDeviceInfo * _Nullable)getDeviceInfo:(AgoraMediaDeviceType)type NS_SWIFT_NAME(getDeviceInfo(_:));
6196 - (int)setDevice:(AgoraMediaDeviceType)type deviceId:(NSString * _Nonnull)deviceId NS_SWIFT_NAME(setDevice(_:deviceId:));
6204 - (AgoraRtcDeviceInfo* _Nullable)getDefaultAudioDevice:(AgoraMediaDeviceType)type NS_SWIFT_NAME(getDefaultAudioDevice(_:));
6214 - (int)getDeviceVolume:(AgoraMediaDeviceType)type NS_SWIFT_NAME(getDeviceVolume(_:));
6225 - (int)setDeviceVolume:(AgoraMediaDeviceType)type volume:(int)volume NS_SWIFT_NAME(setDeviceVolume(_:volume:));
6237 - (int)startRecordingDeviceTest:(
int)indicationInterval NS_SWIFT_NAME(startRecordingDeviceTest(_:));
6248 - (int)stopRecordingDeviceTest NS_SWIFT_NAME(stopRecordingDeviceTest());
6264 - (int)startPlaybackDeviceTest:(NSString * _Nonnull)audioFileName NS_SWIFT_NAME(startPlaybackDeviceTest(_:));
6275 - (int)stopPlaybackDeviceTest NS_SWIFT_NAME(stopPlaybackDeviceTest());
6290 - (int)startAudioDeviceLoopbackTest:(
int)indicationInterval NS_SWIFT_NAME(startAudioDeviceLoopbackTest(_:));
6299 - (int)stopAudioDeviceLoopbackTest NS_SWIFT_NAME(stopAudioDeviceLoopbackTest());
6312 - (int)followSystemPlaybackDevice:(BOOL)enable NS_SWIFT_NAME(followSystemPlaybackDevice(_:));
6325 - (int)followSystemRecordingDevice:(BOOL)enable NS_SWIFT_NAME(followSystemRecordingDevice(_:));
6335 - (int)startCaptureDeviceTest:(NSView * _Nonnull)view NS_SWIFT_NAME(startCaptureDeviceTest(_:));
6343 - (int)stopCaptureDeviceTest NS_SWIFT_NAME(stopCaptureDeviceTest());
6346 #pragma mark Face Detection
6348 #if TARGET_OS_IPHONE
6373 - (int)enableFaceDetection:(
bool)enable NS_SWIFT_NAME(enableFaceDetection(_:));
6376 #pragma mark Watermark
6389 - (int)addVideoWatermark:(AgoraImage * _Nonnull)watermark NS_SWIFT_NAME(addVideoWatermark(_:)) __deprecated_msg(
"use addVideoWatermark:url options instead.");
6416 - (int)addVideoWatermark:(NSURL* _Nonnull)url options:(
WatermarkOptions* _Nonnull)options NS_SWIFT_NAME(addVideoWatermark(_:options:));
6422 - (int)clearVideoWatermarks NS_SWIFT_NAME(clearVideoWatermarks());
6424 #pragma mark String UID
6458 - (int)registerLocalUserAccount:(NSString* _Nonnull)userAccount appId:(NSString* _Nonnull)appId NS_SWIFT_NAME(registerLocalUserAccount(_:appId:));
6494 - (int)joinChannelByToken:(NSString * _Nullable)token
6495 channelId:(NSString * _Nonnull)channelId
6496 userAccount:(NSString * _Nonnull)userAccount
6497 joinSuccess:(void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannel(byToken:channelId:userAccount:joinSuccess:));
6534 - (int)joinChannelByToken:(NSString * _Nullable)token
6535 channelId:(NSString * _Nonnull)channelId
6536 userAccount:(NSString * _Nonnull)userAccount
6538 joinSuccess:(
void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))joinSuccessBlock NS_SWIFT_NAME(joinChannel(byToken:channelId:userAccount:mediaOptions:joinSuccess:));
6550 - (
AgoraUserInfo* _Nullable)getUserInfoByUserAccount:(NSString* _Nonnull)userAccount withError:(AgoraErrorCode* _Nullable)error NS_SWIFT_NAME(getUserInfo(byUserAccount:withError:));
6562 - (
AgoraUserInfo* _Nullable)getUserInfoByUid:(NSUInteger)uid withError:(AgoraErrorCode* _Nullable)error NS_SWIFT_NAME(getUserInfo(byUid:withError:));
6564 #pragma mark Custom Audio PCM Frame
6572 - (BOOL)setAudioFrameDelegate:(id<AgoraAudioFrameDelegate> _Nullable)
delegate NS_SWIFT_NAME(setAudioFrameDelegate(_:));
6574 #pragma mark Custom Video Frame
6587 - (BOOL)setVideoFrameDelegate:(id<AgoraVideoFrameDelegate> _Nullable)
delegate NS_SWIFT_NAME(setVideoFrameDelegate(_:));
6589 #pragma mark Encoded Video Frame
6602 - (BOOL)setEncodedVideoFrameDelegate:(id<AgoraEncodedVideoFrameDelegate> _Nullable)
delegate NS_SWIFT_NAME(setEncodedVideoFrameDelegate(_:));
6604 #pragma mark Custom Media Metadata
6628 - (BOOL)setMediaMetadataDataSource:(id<AgoraMediaMetadataDataSource> _Nullable)metadataDataSource withType:(
AgoraMetadataType)type NS_SWIFT_NAME(setMediaMetadataDataSource(_:with:));
6645 - (BOOL)setMediaMetadataDelegate:(id<AgoraMediaMetadataDelegate> _Nullable)metadataDelegate withType:(
AgoraMetadataType)type NS_SWIFT_NAME(setMediaMetadataDelegate(_:with:));
6647 #pragma mark Miscellaneous Methods
6666 + (NSString* _Nonnull)getErrorDescription:(NSInteger)error NS_SWIFT_NAME(getErrorDescription(_:));
6673 - (
void * _Nullable)getNativeHandle NS_SWIFT_NAME(getNativeHandle());
6699 - (int)setLogFile:(NSString * _Nonnull)filePath NS_SWIFT_NAME(setLogFile(_:));
6715 - (int)setLogFilter:(NSUInteger)filter NS_SWIFT_NAME(setLogFilter(_:));
6731 - (int)setLogFileSize:(NSUInteger)fileSizeInKBytes NS_SWIFT_NAME(setLogFileSize(_:));
6774 - (int)rate:(NSString * _Nonnull)callId
6775 rating:(NSInteger)rating
6776 description:(NSString * _Nullable)description NS_SWIFT_NAME(rate(_:rating:description:));
6795 - (int)complain:(NSString * _Nonnull)callId
6796 description:(NSString * _Nullable)description NS_SWIFT_NAME(complain(_:description:));
6809 - (int)enableMainQueueDispatch:(BOOL)enabled NS_SWIFT_NAME(enableMainQueueDispatch(_:));
6832 - (int)startLastmileProbeTest:(
AgoraLastmileProbeConfig *_Nullable)config NS_SWIFT_NAME(startLastmileProbeTest(_:));
6849 - (int)setParameters:(NSString * _Nonnull)options NS_SWIFT_NAME(setParameters(_:));
6856 - (NSString * _Nullable)getParameter:(NSString * _Nonnull)parameter
6857 args:(NSString * _Nullable)args NS_SWIFT_NAME(getParameter(_:args:));
6865 #pragma mark MediaPlayer
6875 - (id<AgoraRtcMediaPlayerProtocol>_Nullable)createMediaPlayerWithDelegate:(id<AgoraRtcMediaPlayerDelegate>_Nullable)
delegate NS_SWIFT_NAME(createMediaPlayer(with:));
6893 - (int)destroyMediaPlayer:(id<AgoraRtcMediaPlayerProtocol>_Nullable)mediaPlayer NS_SWIFT_NAME(destroyMediaPlayer(_:));
6910 - (id<AgoraRtcMediaPlayerProtocol> _Nullable)getMediaPlayer:(
int)mediaPlayerId NS_SWIFT_NAME(getMediaPlayer(_:));
6912 #pragma mark rhythm player
6924 - (int)startRhythmPlayer:(NSString * _Nonnull)sound1 sound2:(NSString * _Nonnull)sound2 config:(
AgoraRhythmPlayerConfig * _Nullable)config NS_SWIFT_NAME(startRhythmPlayer(_:sound2:config:));
6944 #pragma mark Streaming Kit
6958 - (int)setDirectCdnStreamingAudioConfiguration:(
AgoraAudioProfile)profile NS_SWIFT_NAME(setDirectCdnStreamingAudioConfiguration(_:));
6974 - (int)setDirectCdnStreamingVideoConfiguration:(AgoraVideoEncoderConfiguration * _Nonnull)config NS_SWIFT_NAME(setDirectCdnStreamingVideoConfiguration(_:));
6989 - (int)startDirectCdnStreaming:(id<AgoraDirectCdnStreamingEventDelegate> _Nonnull)
delegate
6990 publishUrl:(NSString * _Nonnull)publishUrl
7016 #pragma mark Channel Transcoder
7024 #pragma mark Deprecated Methods
7042 - (void)audioVolumeIndicationBlock:(
void(^ _Nullable)(NSArray * _Nonnull speakers, NSInteger totalVolume))audioVolumeIndicationBlock NS_SWIFT_NAME(audioVolumeIndicationBlock(_:)) __deprecated_msg(
"use delegate instead.");
7052 - (void)firstLocalVideoFrameBlock:(
void(^ _Nullable)(NSInteger width, NSInteger height, NSInteger elapsed))firstLocalVideoFrameBlock NS_SWIFT_NAME(firstLocalVideoFrameBlock(_:)) __deprecated_msg(
"use delegate instead.");
7064 - (void)firstRemoteVideoDecodedBlock:(
void(^ _Nullable)(NSUInteger uid, NSInteger width, NSInteger height, NSInteger elapsed))firstRemoteVideoDecodedBlock NS_SWIFT_NAME(firstRemoteVideoDecodedBlock(_:)) __deprecated_msg(
"use delegate instead.");
7075 - (void)firstRemoteVideoFrameBlock:(
void(^ _Nullable)(NSUInteger uid, NSInteger width, NSInteger height, NSInteger elapsed))firstRemoteVideoFrameBlock NS_SWIFT_NAME(firstRemoteVideoFrameBlock(_:)) __deprecated_msg(
"use delegate instead.");
7086 - (void)userJoinedBlock:(
void(^ _Nullable)(NSUInteger uid, NSInteger elapsed))userJoinedBlock NS_SWIFT_NAME(userJoinedBlock(_:)) __deprecated_msg(
"use delegate instead.");
7096 - (void)userOfflineBlock:(
void(^ _Nullable)(NSUInteger uid))userOfflineBlock NS_SWIFT_NAME(userOfflineBlock(_:)) __deprecated_msg(
"use delegate instead.");
7107 - (void)userMuteAudioBlock:(
void(^ _Nullable)(NSUInteger uid, BOOL muted))userMuteAudioBlock NS_SWIFT_NAME(userMuteAudioBlock(_:)) __deprecated_msg(
"use delegate instead.");
7123 - (void)userMuteVideoBlock:(
void(^ _Nullable)(NSUInteger uid, BOOL muted))userMuteVideoBlock NS_SWIFT_NAME(userMuteVideoBlock(_:)) __deprecated_msg(
"use delegate instead.");
7132 - (void)localVideoStatBlock:(
void(^ _Nullable)(NSInteger sentBitrate, NSInteger sentFrameRate))localVideoStatBlock NS_SWIFT_NAME(localVideoStatBlock(_:)) __deprecated_msg(
"use delegate instead.");
7143 - (void)remoteVideoStatBlock:(
void(^ _Nullable)(NSUInteger uid, NSInteger delay, NSInteger receivedBitrate, NSInteger receivedFrameRate))remoteVideoStatBlock NS_SWIFT_NAME(remoteVideoStatBlock(_:)) __deprecated_msg(
"use delegate instead.");
7148 - (void)cameraReadyBlock:(
void(^ _Nullable)(void))cameraReadyBlock NS_SWIFT_NAME(cameraReadyBlock(_:)) __deprecated_msg(
"use delegate instead.");
7153 - (void)connectionLostBlock:(
void(^ _Nullable)(void))connectionLostBlock NS_SWIFT_NAME(connectionLostBlock(_:)) __deprecated_msg(
"use delegate instead.");
7165 - (void)rejoinChannelSuccessBlock:(
void(^ _Nullable)(NSString * _Nonnull channel, NSUInteger uid, NSInteger elapsed))rejoinChannelSuccessBlock NS_SWIFT_NAME(rejoinChannelSuccessBlock(_:)) __deprecated_msg(
"use delegate instead.");
7173 - (void)rtcStatsBlock:(
void(^ _Nullable)(
AgoraChannelStats * _Nonnull stat))rtcStatsBlock NS_SWIFT_NAME(rtcStatsBlock(_:)) __deprecated_msg(
"use delegate instead.");
7183 - (void)leaveChannelBlock:(
void(^ _Nullable)(
AgoraChannelStats * _Nonnull stat))leaveChannelBlock NS_SWIFT_NAME(leaveChannelBlock(_:)) __deprecated_msg(
"use delegate instead.");
7194 - (void)audioQualityBlock:(
void(^ _Nullable)(NSUInteger uid,
AgoraNetworkQuality quality, NSUInteger delay, NSUInteger lost))audioQualityBlock NS_SWIFT_NAME(audioQualityBlock(_:)) __deprecated_msg(
"use delegate instead.");
7204 - (void)networkQualityBlock:(
void(^ _Nullable)(NSUInteger uid,
AgoraNetworkQuality txQuality,
AgoraNetworkQuality rxQuality))networkQualityBlock NS_SWIFT_NAME(networkQualityBlock(_:)) __deprecated_msg(
"use delegate instead.");
7212 - (void)lastmileQualityBlock:(
void(^ _Nullable)(
AgoraNetworkQuality quality))lastmileQualityBlock NS_SWIFT_NAME(lastmileQualityBlock(_:)) __deprecated_msg(
"use delegate instead.");
7217 - (void)mediaEngineEventBlock:(
void(^ _Nullable)(NSInteger code))mediaEngineEventBlock NS_SWIFT_NAME(mediaEngineEventBlock(_:)) __deprecated_msg(
"use delegate instead.");
7228 - (int)pauseAudio __deprecated_msg(
"use disableAudio instead.");
7239 - (int)resumeAudio __deprecated_msg(
"use enableAudio instead.");
7247 + (instancetype _Nonnull)sharedEngineWithAppId:(NSString * _Nonnull)AppId
7248 error:(void(^ _Nullable)(AgoraErrorCode errorCode))errorBlock NS_SWIFT_NAME(sharedEngine(withAppId:error:)) __deprecated_msg(
"use sharedEngineWithAppId:delegate: instead.");
7255 - (int)setHighQualityAudioParametersWithFullband:(BOOL)fullband
7257 fullBitrate:(BOOL)fullBitrate NS_SWIFT_NAME(setHighQualityAudioParametersWithFullband(_:stereo:fullBitrate:)) __deprecated_msg(
"use setAudioProfile:scenario: instead.");
7276 - (int)setVideoProfile:(AgoraVideoProfile)profile
7277 swapWidthAndHeight:(BOOL)swapWidthAndHeight NS_SWIFT_NAME(setVideoProfile(_:swapWidthAndHeight:)) __deprecated_msg(
"use setVideoEncoderConfiguration: instead.");
7297 - (int)setVideoResolution:(CGSize)size andFrameRate:(NSInteger)frameRate bitrate:(NSInteger)bitrate NS_SWIFT_NAME(setVideoResolution(_:andFrameRate:bitrate:)) __deprecated_msg(
"use setVideoEncoderConfiguration: instead.");
7317 - (int)setAudioProfile:(
AgoraAudioProfile)profile scenario:(
AgoraAudioScenario)scenario NS_SWIFT_NAME(setAudioProfile(_:scenario:)) __deprecated_msg(
"use setAudioProfile: instead.");
7326 - (NSString * _Nullable)getDeviceId:(AgoraMediaDeviceType)type NS_SWIFT_NAME(getDeviceId(_:)) __deprecated_msg(
"use getDeviceInfo: instead.");
7348 - (int)setExternalAudioSource:(BOOL)enabled
7349 sampleRate:(NSInteger)sampleRate
7350 channels:(NSInteger)channels NS_SWIFT_NAME(setExternalAudioSource(_:sampleRate:channels:)) __deprecated_msg(
"use createCustomAudioTrack:config: instead.");
7378 - (int)setExternalAudioSource:(BOOL)enabled
7379 sampleRate:(NSInteger)sampleRate
7380 channels:(NSInteger)channels
7381 localPlayback:(BOOL)localPlayback
7382 publish:(BOOL)publish NS_SWIFT_NAME(setExternalAudioSource(_:sampleRate:channels:localPlayback:publish:)) __deprecated_msg(
"use createCustomAudioTrack:config: instead.");
7384 #if (!(TARGET_OS_IPHONE) && (TARGET_OS_MAC))
7394 - (int)setSpeakerphoneVolume:(NSUInteger)volume NS_SWIFT_NAME(setSpeakerphoneVolume(_:)) __deprecated_msg(
"use setDeviceVolume:volume: instead.");
7396 - (int)startScreenCapture:(NSUInteger)windowId
7397 withCaptureFreq:(NSInteger)captureFreq
7398 bitRate:(NSInteger)bitRate
7399 andRect:(CGRect)rect NS_SWIFT_NAME(startScreenCapture(_:withCaptureFreq:bitRate:andRect:)) __deprecated_msg(
"use startScreenCaptureByWindowId:regionRect:captureParams: instead.");
7407 + (NSString * _Nonnull)getMediaEngineVersion NS_SWIFT_NAME(getMediaEngineVersion())
__deprecated;
7409 - (int)setAudioOptionParams:(NSString * _Nonnull)params NS_SWIFT_NAME(setAudioOptionParams(_:));
7410 - (NSString * _Nullable)getAudioOptionParams NS_SWIFT_NAME(getAudioOptionParams());
7419 - (int)setAdvancedAudioOptions:(
AgoraAdvancedAudioOptions * _Nonnull)options NS_SWIFT_NAME(setAdvancedAudioOptions(_:));
7433 - (int)sendCustomReportMessage:(NSString * _Nullable)messageId
7434 category:(NSString * _Nullable)category
7435 event:(NSString * _Nullable)
event
7436 label:(NSString * _Nullable)label
7437 value:(NSInteger)value NS_SWIFT_NAME(sendCustomReportMessage(_:category:event:label:value:));
7453 - (int)setLogLevel:(
AgoraLogLevel)level NS_SWIFT_NAME(setLogLevel(_:));
7470 - (int)setEncryptionMode:(NSString * _Nullable)encryptionMode NS_SWIFT_NAME(setEncryptionMode(_:)) __deprecated_msg(
"use enableEncryption: instead.");
7486 - (int)setEncryptionSecret:(NSString * _Nullable)secret NS_SWIFT_NAME(setEncryptionSecret(_:)) __deprecated_msg(
"use enableEncryption: instead.");
7537 - (NSInteger)takeSnapshot:(NSInteger)uid filePath:(NSString* _Nonnull)filePath NS_SWIFT_NAME(takeSnapshot(_:filePath:));
7539 - (int)enableContentInspect:(BOOL)enabled config:(
AgoraContentInspectConfig* _Nonnull)config NS_SWIFT_NAME(enableContentInspect(_:config:));
7551 - (int)setAVSyncSource:(NSString* _Nonnull)channelId uid:(NSUInteger)uid NS_SWIFT_NAME(setAVSyncSource(_:uid:));
7559 - (int)enableVideoImageSource:(BOOL)enable
7590 #pragma mark Media Recorder Delegate Methods
7643 - (int)setMediaRecorderDelegate:(
id<
AgoraMediaRecorderDelegate> _Nullable)delegate NS_SWIFT_NAME(setMediaRecorderDelegate(_:));
7654 - (int)enableMainQueueDispatch:(BOOL)enabled NS_SWIFT_NAME(enableMainQueueDispatch(_:));