google 应用内结算中的 IInAppBillingService.aidl 是什么?

What is IInAppBillingService.aidl in google in-app billing?

我不知道 google 应用内结算中的 IInAppBillingService.aidl 文件是什么。它是 java 文件还是它在项目中的工作方式。同样重要的是我们如何将此类型文件用于 android studio 中的其他功能。并且还想知道当我们构建 apk 时它是如何编译的。有人知道 .aidl 文件

根据文档,

IInAppBillingService.aidl is an Android Interface Definition Language (AIDL) file that defines the interface to the In-app Billing Version 3 service. You will use this interface to make billing requests by invoking IPC method calls.

此处有更多详细信息 link http://developer.android.com/google/play/billing/billing_integrate.html#billing-add-aidl

想了解aidl文件的可以在这里详细查看:

http://developer.android.com/guide/components/aidl.html

另外如果你想清楚InAppBillingService.aidl,这里是:

IInAppBillingService.aidl is an Android Interface Definition Language (AIDL) file that defines the interface to the In-app Billing Version 3 service. You will use this interface to make billing requests by invoking IPC method calls.

http://developer.android.com/google/play/billing/billing_integrate.html

InAppBillingService 是提供应用内结算版本 3 及更高版本的 服务

此服务提供以下功能:

1. Provides a new API to get details of in-app items published for the app including
price, type, title and description.

2. The purchase flow is synchronous and purchase information is available immediately
 after it completes.

3. Purchase information of in-app purchases is maintained within the Google Play system
 till the purchase is consumed.

4. An API to consume a purchase of an inapp item. All purchases of one-time
 in-app items are consumable and thereafter can be purchased again.

5. An API to get current purchases of the user immediately. This will not contain any
 consumed purchases.