Skip to main content

IapAndroid.AndroidModuleProps

react-native-iap / Exports / IapAndroid / AndroidModuleProps

Interface: AndroidModuleProps

IapAndroid.AndroidModuleProps

Common interface for all native modules (iOS — AppStore, Android — PlayStore and Amazon).

Hierarchy

Table of contents

Properties

Methods

Properties

acknowledgePurchase

acknowledgePurchase: AcknowledgePurchase

Defined in

modules/android.ts:68


buyItemByType

buyItemByType: BuyItemByType

Defined in

modules/android.ts:67


consumeProduct

consumeProduct: ConsumeProduct

Defined in

modules/android.ts:69


flushFailedPurchasesCachedAsPending

flushFailedPurchasesCachedAsPending: FlushFailedPurchasesCachedAsPending

Defined in

modules/android.ts:63


getAvailableItemsByType

getAvailableItemsByType: GetAvailableItemsByType

Defined in

modules/android.ts:65


getItemsByType

getItemsByType: GetItemsByType

Defined in

modules/android.ts:64


getPackageName

getPackageName: GetPackageName

Defined in

modules/android.ts:72


getPurchaseHistoryByType

getPurchaseHistoryByType: GetPurchaseHistoryByType

Defined in

modules/android.ts:66


isFeatureSupported

isFeatureSupported: (feature: FeatureType) => Promise\<boolean>

Type declaration

▸ (feature): Promise\<boolean>

Parameters
NameType
featureFeatureType
Returns

Promise\<boolean>

Defined in

modules/android.ts:73


startListening

startListening: StartListening

Deprecated

to be renamed to sendUnconsumedPurchases if not removed completely

Defined in

modules/android.ts:71

Methods

addListener

addListener(eventType): void

addListener for NativeEventEmitter

Parameters

NameType
eventTypestring

Returns

void

Inherited from

NativeModuleProps.addListener

Defined in

modules/common.ts:12


endConnection

endConnection(): Promise\<boolean>

Required method to end the payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.endConnection

Defined in

modules/common.ts:9


initConnection

initConnection(): Promise\<boolean>

Required method to start a payment provider connection

Returns

Promise\<boolean>

Inherited from

NativeModuleProps.initConnection

Defined in

modules/common.ts:6


removeListeners

removeListeners(count): void

removeListeners for NativeEventEmitter

Parameters

NameType
countnumber

Returns

void

Inherited from

NativeModuleProps.removeListeners

Defined in

modules/common.ts:15