所以我有一个计费客户端,我用它来实例化
billingClient = BillingClient.newBuilder(this).setListener(this).build();
然后我打电话
billingClient.startConnection(new BillingClientStateListener() {
@Override
public void onBillingSetupFinished(int responseCode) {
//TODO: use this for stuff
com.android.billingclient.api.Purchase.PurchasesResult result;
result = billingClient.queryPurchases(BillingClient.SkuType.SUBS);
Timber.d(result.toString());
}
@Override
public void onBillingServiceDisconnected() {
//TODO: use this for stuff
Timber.d("something went wrong ");
}
});
无论出于何种原因,木材线上的断点总是断开连接。谁能提供我将如何做到这一点的见解或示例?