setSelfInfo static method

Future<TUIActionCallback> setSelfInfo(
  1. String userName,
  2. String avatarURL
)

Implementation

static Future<TUIActionCallback> setSelfInfo(
    String userName, String avatarURL) {
  _ensurePortRegisterPort();
  String userData = Tools.generateUserData();
  Completer<TUIActionCallback> completer = Completer();
  _actionCallback2Future(userData, completer);
  _engineSDK.Dart_SetSelfInfo(
      Tools.string2PointerChar(userName),
      Tools.string2PointerChar(avatarURL),
      Tools.string2PointerChar(userData));
  return completer.future;
}