loadRewardAd function

Future<OceanResponse> loadRewardAd(
  1. {@required String codeId,
  2. @required bool debug,
  3. @required bool supportDeepLink,
  4. @required String rewardName,
  5. @required int rewardAmount,
  6. @required bool isExpress,
  7. double expressViewAcceptedSizeH,
  8. double expressViewAcceptedSizeW,
  9. @required dynamic userID,
  10. String mediaExtra,
  11. @required bool isHorizontal}
)

Implementation

Future<OceanResponse> loadRewardAd({
  @required String codeId,
  @required bool debug,
  @required bool supportDeepLink,
  @required String rewardName,
  @required int rewardAmount,
  @required bool isExpress,
  double expressViewAcceptedSizeH,
  double expressViewAcceptedSizeW,
  @required userID,
  String mediaExtra,
  @required bool isHorizontal,
}) async {
  Map map = await _channel.invokeMethod("loadRewardAd", {
    "codeId": codeId,
    "debug": debug,
    "supportDeepLink": supportDeepLink,
    "rewardName": rewardName,
    "rewardAmount": rewardAmount,
    "isExpress": isExpress,
    "expressViewAcceptedSizeH": expressViewAcceptedSizeH,
    "expressViewAcceptedSizeW": expressViewAcceptedSizeW,
    "userID": userID,
    "mediaExtra": mediaExtra,
    "isHorizontal": isHorizontal,
  });
  return OceanResponse.create('onResponse', map);
}