public interface IInAppBillingService
extends android.os.IInterface
| Modifier and Type | Interface and Description |
|---|---|
static class |
IInAppBillingService.Stub
Local-side IPC implementation stub class.
|
| Modifier and Type | Method and Description |
|---|---|
int |
consumePurchase(int apiVersion,
String packageName,
String purchaseToken)
Consume the last purchase of the given SKU.
|
android.os.Bundle |
getBuyIntent(int apiVersion,
String packageName,
String sku,
String type,
String developerPayload)
Returns a pending intent to launch the purchase flow for an in-app item by providing a SKU,
the type, a unique purchase token and an optional developer payload.
|
android.os.Bundle |
getPurchases(int apiVersion,
String packageName,
String type,
String continuationToken)
Returns the current SKUs owned by the user of the type and package name specified along with
purchase information and a signature of the data to be validated.
|
android.os.Bundle |
getSkuDetails(int apiVersion,
String packageName,
String type,
android.os.Bundle skusBundle)
Provides details of a list of SKUs
Given a list of SKUs of a valid type in the skusBundle, this returns a bundle
with a list JSON strings containing the productId, price, title and description.
|
int |
isBillingSupported(int apiVersion,
String packageName,
String type)
Checks support for the requested billing API version, package and in-app type.
|
int isBillingSupported(int apiVersion,
String packageName,
String type)
throws android.os.RemoteException
apiVersion - the billing version which the app is usingpackageName - the package name of the calling apptype - type of the in-app item being purchased "inapp" for one-time purchases
and "subs" for subscription.android.os.RemoteExceptionandroid.os.Bundle getSkuDetails(int apiVersion,
String packageName,
String type,
android.os.Bundle skusBundle)
throws android.os.RemoteException
apiVersion - billing API version that the Third-party is usingpackageName - the package name of the calling appskusBundle - bundle containing a StringArrayList of SKUs with key "ITEM_ID_LIST"android.os.RemoteExceptionandroid.os.Bundle getBuyIntent(int apiVersion,
String packageName,
String sku,
String type,
String developerPayload)
throws android.os.RemoteException
apiVersion - billing API version that the app is usingpackageName - package name of the calling appsku - the SKU of the in-app item as published in the developer consoletype - the type of the in-app item ("inapp" for one-time purchases
and "subs" for subscription).developerPayload - optional argument to be sent back with the purchase informationandroid.os.RemoteExceptionandroid.os.Bundle getPurchases(int apiVersion,
String packageName,
String type,
String continuationToken)
throws android.os.RemoteException
apiVersion - billing API version that the app is usingpackageName - package name of the calling apptype - the type of the in-app items being requested
("inapp" for one-time purchases and "subs" for subscription).continuationToken - to be set as null for the first call, if the number of owned
skus are too many, a continuationToken is returned in the response bundle.
This method can be called again with the continuation token to get the next set of
owned skus.android.os.RemoteExceptionint consumePurchase(int apiVersion,
String packageName,
String purchaseToken)
throws android.os.RemoteException
apiVersion - billing API version that the app is usingpackageName - package name of the calling apppurchaseToken - token in the purchase information JSON that identifies the purchase
to be consumedandroid.os.RemoteExceptionCopyright © 2016 Creative Mobile. All rights reserved.