sendLossNotificationWithInfo method
注意:必须为有效的字符串格式的键值对!!!!! @param lossInfo 竞败信息 BeiZiBiddingConstant.KEY_WIN_PRICE :竞胜价格 (单位: 分; 整数),必填(value值使用字符串即可) BeiZiBiddingConstant.KEY_ADN_ID :竞胜渠道ID,必填(value值使用BeiZiBiddingConstant.Adn类下的常量字符串即可) BeiZiBiddingConstant.KEY_LOSS_REASON :失败原因,必填(value值使用BeiZiBiddingConstant.LossReason类下的常量字符串即可)
Implementation
Future<void> sendLossNotificationWithInfo(
Map<String, String> lossInfo) async {
try {
await BeiziSdk.channel.invokeMethod(
BeiZiSdkMethodNames.interstitialNotifyRtbLoss, lossInfo);
} on PlatformException catch (e) {
throw Exception('调用sendLossNotificationWithInfo失败: ${e.message}');
}
}