onClientRoleChangeFailed property
void Function(RtcConnection connection, ClientRoleChangeFailedReason reason, ClientRoleType currentRole)?
onClientRoleChangeFailed
final
Callback when user role change fails.
When the user role change fails, you can use this callback to get the reason for the failure and the current user role.
reasonThe reason for the user role change failure. See ClientRoleChangeFailedReason.currentRoleThe current user role. See ClientRoleType.connectionConnection information. See RtcConnection.
Implementation
final void Function(
RtcConnection connection,
ClientRoleChangeFailedReason reason,
ClientRoleType currentRole)? onClientRoleChangeFailed;