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.

  • reason The reason for the user role change failure. See ClientRoleChangeFailedReason.
  • currentRole The current user role. See ClientRoleType.
  • connection Connection information. See RtcConnection.

Implementation

final void Function(
    RtcConnection connection,
    ClientRoleChangeFailedReason reason,
    ClientRoleType currentRole)? onClientRoleChangeFailed;