IOSRewardedVideoConfig constructor

const IOSRewardedVideoConfig({
  1. required String slotId,
  2. String? userId,
  3. String? rewardName,
  4. int? rewardAmount,
  5. String? extra,
  6. PangleLoadingType loadingType = PangleLoadingType.normal,
})

The rewarded video ad config for Android

slotId The unique identifier of rewarded video ad. userId required. rewardName optional. reward name. rewardAmount optional. number of rewards. extra optional. serialized string. loadingType optional. 加载广告的类型,默认PangleLoadingType.normal

Implementation

//   Third-party game user_id identity.
//   Mainly used in the reward issuance, it is the callback pass-through parameter from server-to-server.
//   It is the unique identifier of each user.
//   In the non-server callback mode, it will also be pass-through when the video is finished playing.
//   Only the string can be passed in this case, not nil.
/// [rewardName] optional. reward name.
/// [rewardAmount] optional. number of rewards.
/// [extra] optional. serialized string.
/// [loadingType] optional. 加载广告的类型,默认[PangleLoadingType.normal]
const IOSRewardedVideoConfig({
  required this.slotId,
  this.userId,
  this.rewardName,
  this.rewardAmount,
  this.extra,
  this.loadingType = PangleLoadingType.normal,
});