AgoraClientRoleChangeFailedReason Constants Reference
| Declared in | AgoraEnumerates.h |
|---|---|
| Availability | v3.7.0 |
AgoraClientRoleChangeFailedReason
The reason for a user role switch failure.
Definition
typedef NS_ENUM(NSInteger, AgoraClientRoleChangeFailedReason ) {
AgoraClientRoleChangeFailedByTooManyBroadcasters = 1,
AgoraClientRoleChangeFailedByNotAuthorized = 2,
AgoraClientRoleChangeFailedByRequestTimeOut = 3,
AgoraClientRoleChangeFailedByConnectionFailed = 4,
};
Constants
AgoraClientRoleChangeFailedByTooManyBroadcasters-
1: The number of hosts in the channel is already at the upper limit.
Declared In
AgoraEnumerates.h. AgoraClientRoleChangeFailedByNotAuthorized-
2: The request is rejected by the Agora server. Agora recommends you prompt the user to try to switch their user role again.
Declared In
AgoraEnumerates.h. AgoraClientRoleChangeFailedByRequestTimeOut-
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.
Declared In
AgoraEnumerates.h. AgoraClientRoleChangeFailedByConnectionFailed-
4: The SDK connection fails. You can use the reason reported in the
connectionChangedToStatecallback to troubleshoot the failure.Declared In
AgoraEnumerates.h.
Availability
v3.7.0
Declared In
AgoraEnumerates.h