loadRewardVideoAd static method

Future<bool> loadRewardVideoAd({
  1. required String androidId,
  2. required String iosId,
  3. required String rewardName,
  4. required int rewardAmount,
  5. required String userID,
  6. String? customData,
  7. bool? downloadConfirm,
  8. bool? videoMuted,
  9. bool? isBidding,
})

激励视频广告预加载

androidId android广告ID

iosId ios广告ID

rewardName 奖励名称

rewardAmount 奖励金额

userID 用户id

customData 扩展参数,服务器回调使用

downloadConfirm 下载二次确认弹窗 默认false

videoMuted 是否静音 默认false

isBidding 是否开启竞价模式 默认false

Implementation

static Future<bool> loadRewardVideoAd({
  required String androidId,
  required String iosId,
  required String rewardName,
  required int rewardAmount,
  required String userID,
  String? customData,
  bool? downloadConfirm,
  bool? videoMuted,
  bool? isBidding,
}) async {
  return await _channel.invokeMethod("loadRewardVideoAd", {
    "androidId": androidId,
    "iosId": iosId,
    "rewardName": rewardName,
    "rewardAmount": rewardAmount,
    "userID": userID,
    "customData": customData ?? "",
    "videoMuted": videoMuted ?? false,
    "downloadConfirm": downloadConfirm ?? false,
    "isBidding": isBidding ?? false,
  });
}