trackWithdrawEvent method

  1. @override
Future<void> trackWithdrawEvent(
  1. int payAmount,
  2. String withPayType,
  3. String withOrderId,
  4. String payReason,
  5. String payMethod,
)
override

上报提现事件到引力

提现金额 单位为分 货币类型 按照国际标准组织ISO 4217中规范的3位字母,例如CNY人民币、USD美金等 订单号 提现原因 例如:用户首次提现、用户抽奖提现 提现支付方式 例如:支付宝、微信、银联等

Implementation

@override
Future<void> trackWithdrawEvent(
  int payAmount,
  String withPayType,
  String withOrderId,
  String payReason,
  String payMethod,
) async {
  try {
    methodChannel.invokeMethod<String>('trackWithdrawEvent', {
      'payAmount': payAmount,
      'payType': withPayType,
      'orderId': withOrderId,
      'payReason': payReason,
      'payMethod': payMethod,
    });
  } on PlatformException catch (e) {
    print('trackWithdrawEvent fail: ${e.message}');
  }
}