AndroidRewardedVideoConfig constructor

const AndroidRewardedVideoConfig({
  1. required String slotId,
  2. String? userId,
  3. String? extra,
  4. bool isVertical = true,
  5. bool isSupportDeepLink = true,
  6. PangleLoadingType? loadingType,
  7. PangleExpressSize? expressSize,
})

The rewarded video ad config for Android

slotId The unique identifier of rewarded video ad. userId required. extra optional. serialized string. isVertical optional. Whether video is vertical orientation. Vertical, if true. Otherwise, horizontal. isSupportDeepLink optional. Whether to support deeplink. default true. loadingType optional. 加载广告的类型,默认PangleLoadingType.normal expressSize optional. 模板宽高

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.
/// [extra] optional. serialized string.
/// [isVertical] optional. Whether video is vertical orientation. Vertical, if true. Otherwise, horizontal.
/// [isSupportDeepLink] optional. Whether to support deeplink. default true.
/// [loadingType] optional. 加载广告的类型,默认[PangleLoadingType.normal]
/// [expressSize] optional. 模板宽高
const AndroidRewardedVideoConfig({
  required this.slotId,
  this.userId,
  this.extra,
  this.isVertical = true,
  this.isSupportDeepLink = true,
  this.loadingType,
  this.expressSize,
});