setBusinessId abstract method

Future<int?> setBusinessId(
  1. String businessId
)

Sets the business ID.

You can distinguish different business scenarios (roles/strategies, etc.) by businessId.
You can customize your businessId to serve as a sub AppId, which can share and refine the function of the AppId, but it does not need authentication.

Returned value:

  • 0: Success
  • <0: Failure
  • -6001: The user is already in the room.
  • -6002: Invalid parameter. Legal characters include all lowercase letters, uppercase letters, numbers, and four other symbols, including '.', '-','_', and '@'.

Notes: Call this API before calling RTCRoom.joinRoom.

Implementation

Future<int?> setBusinessId(String businessId);