loadRewardVideoAd static method
激励视频广告预加载
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 ?? "",
});
}