Agora Java API Reference for Android
Deprecated List
Member io.agora.rtc2.RtcEngine.CreateTextureView (Context context)
This method is deprecated. You can use SurfaceView or TextureView created by Android system.
Member io.agora.rtc2.live.LiveTranscoding.getBlue ()
Gets the background color's blue component.
Member io.agora.rtc2.live.LiveTranscoding.setRed (int red)
Sets the background color's red component.
Member io.agora.rtc2.live.LiveTranscoding.setGreen (int green)
Sets the background color's green component.
Member io.agora.rtc2.live.LiveTranscoding.setBlue (int blue)
Sets the background color's blue component.
Class io.agora.rtc2.PublisherConfiguration.Builder
Class io.agora.rtc2.PublisherParameters
Member io.agora.rtc2.RtcEngine.enableAudioQualityIndication (boolean enabled)
From v2.4.1.
Member io.agora.rtc2.RtcEngine.setDefaultMuteAllRemoteAudioStreams (boolean muted)
This method is deprecated. To set whether to receive remote audio streams by default, call muteAllRemoteAudioStreams before calling joinChannel.
Member io.agora.rtc2.RtcEngine.CreateRendererView (Context context)
This method is deprecated. You can use SurfaceView or TextureView created by Android system.
Member io.agora.rtc2.live.LiveTranscoding.getGreen ()
Gets the background color's green component.
Member io.agora.rtc2.RtcEngine.setDefaultMuteAllRemoteVideoStreams (boolean muted)
This method is deprecated. To set whether to receive remote video streams by default, call muteAllRemoteVideoStreams before calling joinChannel.
Member io.agora.rtc2.RtcEngine.startEchoTest ()
Now use startEchoTest(int)
Member io.agora.rtc2.RtcEngine.addVideoWatermark (AgoraImage watermark)
From v2.9.1. We recommend using the WatermarkOptions) addVideoWatermark2 method instead.
Member io.agora.rtc2.RtcEngine.setEncryptionSecret (String secret)
This method is deprecated.
Member io.agora.rtc2.RtcEngine.setEncryptionMode (String encryptionMode)
This method is deprecated.
Member io.agora.rtc2.RtcEngine.getRecommendedEncoderType ()
This method is deprecated.
Member io.agora.rtc2.RtcEngine.enableHighPerfWifiMode (boolean enable)
This method is deprecated.
Member io.agora.rtc2.RtcEngine.setPreferHeadset (boolean enabled)
This method is deprecated.
Member io.agora.rtc2.IRtcEngineEventHandler.onUserEnableVideo (int uid, boolean enabled)
This callback is deprecated and replaced by the onRemoteVideoStateChanged callback with the following parameters:
  • REMOTE_VIDEO_STATE_STOPPED(0) and REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED(5).
  • REMOTE_VIDEO_STATE_DECODING(2) and REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED(6).
Class io.agora.rtc2.IRtcEngineEventHandler.Quality
Use the new Constants class with the same constants value
Class io.agora.rtc2.IRtcEngineEventHandler.VideoProfile
Use the new Constants class with the same constants value
Class io.agora.rtc2.IRtcEngineEventHandler.ClientRole
Use the new Constants class with the same constants value
Class io.agora.rtc2.IRtcEngineEventHandler.UserOfflineReason
Use the new Constants class with the same constants value
Member io.agora.rtc2.IRtcEngineEventHandler.onWarning (int warn)
Member io.agora.rtc2.IRtcEngineEventHandler.onError (int err)
Member io.agora.rtc2.IRtcEngineEventHandler.onFirstRemoteVideoDecoded (int uid, int width, int height, int elapsed)
This callback is deprecated. Use REMOTE_VIDEO_STATE_STARTING(1) or REMOTE_VIDEO_STATE_DECODING(2) in the onRemoteVideoStateChanged callback instead.
Member io.agora.rtc2.IRtcEngineEventHandler.onUserMuteVideo (int uid, boolean muted)
This callback is deprecated. Use the onRemoteVideoStateChanged callback with the following parameters for the same function:
  • REMOTE_VIDEO_STATE_STOPPED(0) and REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED(5).
  • REMOTE_VIDEO_STATE_DECODING(2) and REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED(6).
Member io.agora.mediaplayer.IMediaPlayer.openWithCustomSource (long startPos, IMediaPlayerCustomDataProvider provider)
Opens a media with custom data provider
Member io.agora.rtc2.IRtcEngineEventHandler.onUserEnableLocalVideo (int uid, boolean enabled)
This callback is deprecated and replaced by the onRemoteVideoStateChanged callback with the following parameters:
  • REMOTE_VIDEO_STATE_STOPPED(0) and REMOTE_VIDEO_STATE_REASON_REMOTE_MUTED(5).
  • REMOTE_VIDEO_STATE_DECODING(2) and REMOTE_VIDEO_STATE_REASON_REMOTE_UNMUTED(6).
Member io.agora.rtc2.IRtcEngineEventHandler.onLocalVideoStat (int sentBitrate, int sentFrameRate)
The statistics of the uploading local video streams once every two seconds.
Member io.agora.rtc2.IRtcEngineEventHandler.onRemoteVideoStat (int uid, int delay, int receivedBitrate, int receivedFrameRate)
The statistics of receiving remote video streams once every two seconds.
Member io.agora.rtc2.live.LiveTranscoding.lowLatency
Deprecated as of v2.8.0. Agora does not recommend using this parameter. Latency mode:
Member io.agora.rtc2.live.LiveTranscoding.userCount
This parameter is deprecated. We recommend using the {getUserCount} method.
Member io.agora.rtc2.live.LiveTranscoding.backgroundColor
This parameter is deprecated. We recommend using the {setBackgroundColor} method to set the background color.
Member io.agora.rtc2.live.LiveTranscoding.metadata
This parameter is deprecated.
Member io.agora.rtc2.live.LiveTranscoding.getRed ()
Gets the background color's red component.