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
↳
AndroidModuleProps
Table of contents
Properties
- acknowledgePurchase
- buyItemByType
- consumeProduct
- flushFailedPurchasesCachedAsPending
- getAvailableItemsByType
- getItemsByType
- getPackageName
- getPurchaseHistoryByType
- isFeatureSupported
- startListening
Methods
Properties
acknowledgePurchase
• acknowledgePurchase: AcknowledgePurchase
Defined in
buyItemByType
• buyItemByType: BuyItemByType
Defined in
consumeProduct
• consumeProduct: ConsumeProduct
Defined in
flushFailedPurchasesCachedAsPending
• flushFailedPurchasesCachedAsPending: FlushFailedPurchasesCachedAsPending
Defined in
getAvailableItemsByType
• getAvailableItemsByType: GetAvailableItemsByType
Defined in
getItemsByType
• getItemsByType: GetItemsByType
Defined in
getPackageName
• getPackageName: GetPackageName
Defined in
getPurchaseHistoryByType
• getPurchaseHistoryByType: GetPurchaseHistoryByType
Defined in
isFeatureSupported
• isFeatureSupported: (feature
: FeatureType
) => Promise
\<boolean
>
Type declaration
▸ (feature
): Promise
\<boolean
>
Parameters
Name | Type |
---|---|
feature | FeatureType |
Returns
Promise
\<boolean
>
Defined in
startListening
• startListening: StartListening
Deprecated
to be renamed to sendUnconsumedPurchases if not removed completely
Defined in
Methods
addListener
▸ addListener(eventType
): void
addListener for NativeEventEmitter
Parameters
Name | Type |
---|---|
eventType | string |
Returns
void
Inherited from
Defined in
endConnection
▸ endConnection(): Promise
\<boolean
>
Required method to end the payment provider connection
Returns
Promise
\<boolean
>
Inherited from
NativeModuleProps.endConnection
Defined in
initConnection
▸ initConnection(): Promise
\<boolean
>
Required method to start a payment provider connection
Returns
Promise
\<boolean
>
Inherited from
NativeModuleProps.initConnection
Defined in
removeListeners
▸ removeListeners(count
): void
removeListeners for NativeEventEmitter
Parameters
Name | Type |
---|---|
count | number |
Returns
void
Inherited from
NativeModuleProps.removeListeners