showRewardVideoAd static method

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

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

Implementation

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