ClientRoleChangeFailedReason enum
The reason for a user role switch failure.
Values
- clientRoleChangeFailedTooManyBroadcasters → const ClientRoleChangeFailedReason
-
1: The number of hosts in the channel exceeds the limit. This enumerator is reported only when the support for 128 users is enabled. The maximum number of hosts is based on the actual number of hosts configured when you enable the 128-user feature.
- clientRoleChangeFailedNotAuthorized → const ClientRoleChangeFailedReason
-
2: The request is rejected by the Agora server. Agora recommends you prompt the user to try to switch their user role again.
- clientRoleChangeFailedRequestTimeOut → const ClientRoleChangeFailedReason
-
3: The request is timed out. Agora recommends you prompt the user to check the network connection and try to switch their user role again. Deprecated: This enumerator is deprecated since v4.4.0 and is not recommended for use.
- clientRoleChangeFailedConnectionFailed → const ClientRoleChangeFailedReason
-
4: The SDK is disconnected from the Agora edge server. You can troubleshoot the failure through the reason reported by onConnectionStateChanged. Deprecated: This enumerator is deprecated since v4.4.0 and is not recommended for use.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
ClientRoleChangeFailedReason> - A constant List of the values in this enum, in order of their declaration.