Agora Java API Reference for Android
io.agora.rtc.IRtcEngineEventHandler.UserOfflineReason Class Reference

Static Public Attributes

static final int USER_OFFLINE_QUIT = Constants.USER_OFFLINE_QUIT
 
static final int USER_OFFLINE_DROPPED = Constants.USER_OFFLINE_DROPPED
 

Detailed Description

Reasons for the user going offline.

Member Data Documentation

◆ USER_OFFLINE_QUIT

final int io.agora.rtc.IRtcEngineEventHandler.UserOfflineReason.USER_OFFLINE_QUIT = Constants.USER_OFFLINE_QUIT
static

0: The user quit the call.

◆ USER_OFFLINE_DROPPED

final int io.agora.rtc.IRtcEngineEventHandler.UserOfflineReason.USER_OFFLINE_DROPPED = Constants.USER_OFFLINE_DROPPED
static

1: The SDK timed out and the user dropped offline because it has not received any data packet for a period of time.

Note
  • If a user quits the call and the message is not passed to the SDK (due to an unreliable channel), the SDK assumes the user dropped offline.
  • After the user kills the app with a gesture swipe, the SDK reports USER_OFFLINE_DROPPED(1) instead of USER_OFFLINE_QUIT(0) due to system limitations.