Android Programming Press on the image to return to the main documentation page.

InAppBilling

List of types:

BillingManager

BillingManager

Provides access to Android market in-app billing service.
See this link for more information.

Permissions:

com.android.vending.BILLING

Events:

BillingSupported (Supported As Boolean)
PurchaseStateChange (PurchaseState As Int, ProductId As String, OrderId As String, PurchaseTime As Long, ExtraData As String)

Members:


  HandleIntent (Intent As android.content.Intent)

  Initialize (EventName As String, PublicKey As String)

  PURCHASE_STATE_CANCELED As Int

  PURCHASE_STATE_NODATA As Int

  PURCHASE_STATE_PURCHASED As Int

  PURCHASE_STATE_REFUNDED As Int

  RequestPayment (View As android.view.View, ProductId As String, ExtraData As String)

  RestoreTransactions

  UnbindMarketService

Members description:

HandleIntent (Intent As android.content.Intent)
Passes the intent to manager for further processing.
Initialize (EventName As String, PublicKey As String)
Initialized the object.
EventName - Sets the subs that will handle the events.
PublicKey - Developer public key from the developer console.
PURCHASE_STATE_CANCELED As Int
PURCHASE_STATE_NODATA As Int
PURCHASE_STATE_PURCHASED As Int
PURCHASE_STATE_REFUNDED As Int
RequestPayment (View As android.view.View, ProductId As String, ExtraData As String)
Starts a purchase request.
View - Should usually be the Activity object. Required for allowing access to the activity context.
ProductId - The product id as set in the developer console.
ExtraData - Arbitrary string that is tied to the request.
RestoreTransactions
Sends a request to the market to restore managed products transactions.
UnbindMarketService
Unbinds from the market service.
Top