onClientRoleChange method Null safety

void onClientRoleChange(
  1. int oldRole,
  2. int newRole
)

Get notified when a user changes the role. Get notified when a user changes the role after joining a room in live streaming. For information about roles, see NERtcClientRole. oldRole The role before newRole the role after

Implementation

void onClientRoleChange(int oldRole, int newRole);