UserOfflineReason enum

用户离线原因。

Constants

BecomeAudience → const UserOfflineReason

(直播场景中)用户身份从主播切换为观众时触发。

@JsonValue(2)
const UserOfflineReason(2)
Dropped → const UserOfflineReason

因过长时间收不到对方数据包,超时掉线。注意:由于 SDK 使用的是不可靠通道, 也有可能对方主动离开本方没收到对方离开消息而误判为超时掉线。

@JsonValue(1)
const UserOfflineReason(1)
Quit → const UserOfflineReason

用户主动离开。

@JsonValue(0)
const UserOfflineReason(0)
values → const List<UserOfflineReason>

A constant List of the values in this enum, in order of their declaration.

const List<UserOfflineReason>

Properties

hashCode int
The hash code for this object. [...]
read-only, inherited
index int

The integer index of this enum.

final
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() String
Returns a string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator. [...]
inherited