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

iStore

List of types:

ProductInformation
Purchase
Store

ProductInformation


Events:

None

Members:


  Description As String [read only]

  IsInitialized As Boolean

  LocalizedPrice As String [read only]

  ProductIdentifier As String [read only]

  Tag As Object

  Title As String [read only]

Members description:

Description As String [read only]
Returns the product description.
IsInitialized As Boolean
Tests whether this object was initialized.
LocalizedPrice As String [read only]
Returns the localized price string.
ProductIdentifier As String [read only]
Returns the product identifier.
Tag As Object
Gets or sets the Tag object. This is a placeholder for any object you like to tie to this object.
Title As String [read only]
Returns the product title.

Purchase


Events:

None

Members:


  Error As ExceptionWrapper [read only]

  IsInitialized As Boolean

  ProductIdentifier As String [read only]

  Tag As Object

  TransactionDate As Long [read only]

  TransactionIdentifier As String [read only]

Members description:

Error As ExceptionWrapper [read only]
Returns the error object if the transaction was not successful.
IsInitialized As Boolean
Tests whether this object was initialized.
ProductIdentifier As String [read only]
Returns the product identifier.
Tag As Object
Gets or sets the Tag object. This is a placeholder for any object you like to tie to this object.
TransactionDate As Long [read only]
Returns the transaction date. Only relevant if the transaction was successful.
TransactionIdentifier As String [read only]
Returns the transaction unique identifier.

Store

The Store object provides access to Apple's in app purchases features. See the forum tutorial for more information.

Events:

PurchaseCompleted (Success As Boolean, Product As Purchase)
InformationAvailable (Success As Boolean, Products As List)
TransactionsRestored (Success As Boolean)

Members:


  CanMakePayments As Boolean [read only]

  Initialize (EventName As String)

  RequestPayment (ProductId As String)

  RequestProductsInformation (Ids As List)

  RestoreTransactions

Members description:

CanMakePayments As Boolean [read only]
Checks whether the device supports in app purchases (it might be restricted).
Initialize (EventName As String)
Initializes the object and sets the subs that will handle the events. You should initialize and use a single Store instance.
RequestPayment (ProductId As String)
Starts a payment request process for the given product id. The user will be asked to log in and approve the purchase.
The PurchaseCompleted event will later be raised.
RequestProductsInformation (Ids As List)
RestoreTransactions
Restores successful transactions of non-consumable products. The PurchaseCompleted will be raised for each transaction.
Note that the user might be asked to log in to his account. You should not call this method when the app starts.
Only when the user asks to restore previous transactions.
The TransactionsRestored event will later be raised.
Top