public static enum Constants.UserOfflineReasonType extends java.lang.Enum<Constants.UserOfflineReasonType>
| Enum Constant and Description |
|---|
USER_OFFLINE_BECOME_AUDIENCE
2: The user switches the client role from the host to the audience.
|
USER_OFFLINE_DROPPED
1: The SDK times out and the user drops offline because no data packet was
received within a
certain period of time.
|
USER_OFFLINE_QUIT
0: The user leaves the current channel.
|
USER_OFFLINE_UNKNOWN |
| Modifier and Type | Field and Description |
|---|---|
private int |
value |
| Modifier and Type | Method and Description |
|---|---|
static Constants.UserOfflineReasonType |
fromInt(int value) |
int |
getValue() |
static Constants.UserOfflineReasonType |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Constants.UserOfflineReasonType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Constants.UserOfflineReasonType USER_OFFLINE_UNKNOWN
public static final Constants.UserOfflineReasonType USER_OFFLINE_QUIT
public static final Constants.UserOfflineReasonType USER_OFFLINE_DROPPED
public static final Constants.UserOfflineReasonType USER_OFFLINE_BECOME_AUDIENCE
public static Constants.UserOfflineReasonType[] values()
for (Constants.UserOfflineReasonType c : Constants.UserOfflineReasonType.values()) System.out.println(c);
public static Constants.UserOfflineReasonType valueOf(java.lang.String name)
name - the name of the enum constant to be returned.java.lang.IllegalArgumentException - if this enum type has no constant with the specified namejava.lang.NullPointerException - if the argument is nullpublic int getValue()
public static Constants.UserOfflineReasonType fromInt(int value)