changeUserRole method

Future<TUIActionCallback> changeUserRole(
  1. String userId,
  2. TUIRole role
)

Implementation

Future<TUIActionCallback> changeUserRole(String userId, TUIRole role) {
  String userData = Tools.generateUserData();
  Completer<TUIActionCallback> completer = Completer();
  _actionCallback2Future(userData, completer);
  _engineSDK.Dart_ChangeUserRole(
      _engineFFIPointer,
      Tools.string2PointerChar(userId),
      role.value(),
      Tools.string2PointerChar(userData));
  return completer.future;
}