spendBalance method

Future<void> spendBalance(
  1. String adUnitId,
  2. int count
)

扣除用户积分墙积分:adUnitId 广告位ID,count 扣除的数量

Implementation

Future<void> spendBalance(String adUnitId, int count) async {
  Map arguments = {};
  arguments['adUnitID'] = adUnitId;
  arguments['count'] = count;
  TradplusSdk.channel.invokeMethod('offerwall_spend', arguments);
}