showRewardVideoAd method

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

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

Implementation

@override
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;
}