loadRewardVideoAd method Null safety

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}
)

激励视频广告预加载

androidId android广告ID

iosId ios广告ID

rewardName 奖励名称

rewardAmount 奖励金额

userID 用户id

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

Implementation

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