Agora Java API Reference for Android
Deprecated List
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.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.startEchoTest ()
Now use startEchoTest(int)
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.setAudioProfile (int profile, int scenario)
This method is deprecated. You can use the { setAudioProfile(int profile)} method instead. To set the audio scenario, call RtcEngine#create(RtcEngineConfig config) create2} and pass value in the mAudioScenario member.
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.RtcEngine.CreateRendererView (Context context)
This method is deprecated. You can use SurfaceView or TextureView created by Android system.
Class io.agora.rtc2.PublisherParameters
Class io.agora.rtc2.PublisherConfiguration.Builder
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.
Class io.agora.rtc2.IRtcEngineEventHandler.Quality
Use the new Constants class with the same constants value
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.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.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).
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.rtc2.IRtcEngineEventHandler.onError (int err)
Member io.agora.rtc2.IRtcEngineEventHandler.onWarning (int warn)
Class io.agora.rtc2.IRtcEngineEventHandler.UserOfflineReason
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.VideoProfile
Use the new Constants class with the same constants value