loadRewardVideoAd function

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

激励视频广告

Implementation

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