NativeStore

public class
loom.store.NativeStore

Description

Bindings to the native store API for the current platform.

For simplicity, the native store bindings are implemented without a direct coupling to the loom.store API. This allows it to be more direct, simplifying binding and native code, with an adapter (NativeStoreProvider) presenting a simple-to-use and convenient API to users.

API overview

Constructor

NativeStore ()

Attributes

Public attributes

available: Boolean static native
onProduct: NativeDelegate static native
onProductComplete: NativeDelegate static native
onPurchaseUIComplete: NativeDelegate static native
onTransaction: NativeDelegate static native
providerName: String static native

Functions

Public functions

initialize (): Void static native
listProducts ( json: String ): Void static native
requestPurchase ( identifier: String ): Void static native

Constructor

NativeStore ()

Attributes

available: Boolean

static native

onProduct: NativeDelegate

static native

onProductComplete: NativeDelegate

static native

onPurchaseUIComplete: NativeDelegate

static native

onTransaction: NativeDelegate

static native

providerName: String

static native

Functions

getFullTypeName (): String
Inherited from Object

native

Gets the fully qualified type name of the Object. The fully qualified type name includes the package of the type.


Returns

String fully qualified type name of the Object.

getType (): Type
Inherited from Object

native

Gets the Type that describes the Object.


Returns

Type The Type that describes the object.

getTypeName (): String
Inherited from Object

native

Gets the type name of the Object.


Returns

String type name of the Object.

initialize (): Void

static native



listProducts ( json: String ): Void

static native

Parameters

json: String


requestPurchase ( identifier: String ): Void

static native

Parameters

identifier: String


toString (): String
Inherited from Object

native

Returns a String that describes the Object. This can be overriden to provide extra details when printing objects using trace().


Returns

String String that described the Object.