onLocalUserRegistered property

void Function(int uid, String userAccount)? onLocalUserRegistered
final

Callback when the local user successfully registers a User Account.

When the local user successfully registers a User Account by calling registerLocalUserAccount, or joins a channel using joinChannelWithUserAccount, the SDK triggers this callback and reports the local user's UID and User Account.

  • uid The local user's ID.
  • userAccount The local user's User Account.

Implementation

final void Function(int uid, String userAccount)? onLocalUserRegistered;