sendGift static method

Future<TUIActionCallback> sendGift(
  1. String roomId,
  2. String giftId,
  3. int count
)

Implementation

static Future<TUIActionCallback> sendGift(String roomId, String giftId, int count) {
  String userData = Tools.generateUserData();
  Completer<TUIActionCallback> completer = Completer();
  _actionCallback2Future(userData, completer);
  _engineSDK.Dart_SengGift(
      _liveGiftFFIPointer!,
      Tools.string2PointerChar(roomId),
      Tools.string2PointerChar(giftId),
      count,
      Tools.string2PointerChar(userData));
  return completer.future;
}