setUserId static method

Future<V2TXLiveCode> setUserId(
  1. String userId
)

Set the user ID

Parameter:

userId The ID of the user/device maintained by the service side.

Implementation

static Future<V2TXLiveCode> setUserId(String userId) async {
  var code = await V2TXLivePremier()._channel.invokeMethod("setUserId", {"userId": userId});
  if (code is V2TXLiveCode) {
    return code;
  } else {
    return V2TXLIVE_ERROR_FAILED;
  }
}