clientRoleChanged property
Occurs when the user role switches successfully in the interactive live streaming. In the LIVE_BROADCASTING channel profile, when the local user successfully calls setClientRole to switch their user role after joining the channel, for example, from a host to an audience member or vice versa, the SDK triggers this callback to report the user role before and after the switch.
Param newRole
Role that the user switches to: ClientRole .
Param oldRole
Role that the user switches from: ClientRole .
Implementation
ClientRoleCallback? clientRoleChanged;