loadRewardVideoAd static method

Future<bool> loadRewardVideoAd({
  1. required String iosAppId,
  2. required String androidAppId,
  3. bool? mIsExpress,
  4. bool? supportDeepLink,
  5. double? expressWidth,
  6. double? expressHeight,
  7. required String rewardName,
  8. required int rewardAmount,
  9. required String userID,
  10. int? orientation,
  11. String? mediaExtra,
})

激励视频广告预加载

mIsExpress 是否使用个性化模版

androidAppId android 激励视频广告id 必填

iosAppId ios 激励视频广告id 必填

supportDeepLink 是否支持 DeepLink 选填

expressWidth 期望view 宽度 dp 必填

expressHeight 期望view高度 dp 必填

rewardName 激励名称

rewardAmount 奖励金币数

userID userID

orientation 旋转方向

mediaExtra 额外的

Implementation

static Future<bool> loadRewardVideoAd({
  required String iosAppId,
  required String androidAppId,
  bool? mIsExpress,
  bool? supportDeepLink,
  double? expressWidth,
  double? expressHeight,
  required String rewardName,
  required int rewardAmount,
  required String userID,
  int? orientation,
  String? mediaExtra,
}) async {
  return await _channel.invokeMethod("loadRewardVideoAd", {
    "mIsExpress": mIsExpress ?? false,
    "iosAppId": iosAppId,
    "androidAppId": androidAppId,
    "supportDeepLink": supportDeepLink ?? true,
    "expressWidth": expressWidth ?? 750,
    "expressHeight": expressHeight ?? 1080,
    "rewardName": rewardName,
    "rewardAmount": rewardAmount,
    "userID": userID,
    "orientation": orientation ?? 0,
    "mediaExtra": mediaExtra ?? "",
  });
}