showRewardVideoAd static method

Future<bool> showRewardVideoAd(
  1. String posId, {
  2. bool playMuted = false,
  3. String? customData,
  4. String? userId,
})

展示激励视频广告 posId 广告位 id playMuted 是否静音播放 customData 设置服务端验证的自定义信息 userId 设置服务端验证的用户信息

Implementation

static Future<bool> showRewardVideoAd(
  String posId, {
  bool playMuted = false,
  String? customData,
  String? userId,
}) async {
  final bool result = await _methodChannel.invokeMethod(
    'showRewardVideoAd',
    {
      'posId': posId,
      'playMuted': playMuted,
      'customData': customData,
      'userId': userId,
    },
  );
  return result;
}