IapAmazon.AmazonModuleProps
react-native-iap / Exports / IapAmazon / AmazonModuleProps
Interface: AmazonModuleProps
IapAmazon.AmazonModuleProps
Common interface for all native modules (iOS — AppStore, Android — PlayStore and Amazon).
Hierarchy
↳
AmazonModuleProps
Table of contents
Properties
- acknowledgePurchase
- buyItemByType
- consumeProduct
- deepLinkToSubscriptions
- flushFailedPurchasesCachedAsPending
- getAvailableItems
- getItemsByType
- getUser
- startListening
- verifyLicense
Methods
Properties
acknowledgePurchase
• acknowledgePurchase: AcknowledgePurchase
Defined in
buyItemByType
• buyItemByType: BuyItemByType
Defined in
consumeProduct
• consumeProduct: ConsumeProduct
Defined in
deepLinkToSubscriptions
• deepLinkToSubscriptions: (isAmazonDevice
: boolean
) => Promise
\<void
>
Type declaration
▸ (isAmazonDevice
): Promise
\<void
>
Parameters
Name | Type |
---|---|
isAmazonDevice | boolean |
Returns
Promise
\<void
>
Defined in
flushFailedPurchasesCachedAsPending
• flushFailedPurchasesCachedAsPending: FlushFailedPurchasesCachedAsPending
Defined in
getAvailableItems
• getAvailableItems: GetAvailableItems
Defined in
getItemsByType
• getItemsByType: GetItemsByType
Defined in
getUser
• getUser: GetUser
Defined in
startListening
• startListening: StartListening
Deprecated
to be renamed to sendUnconsumedPurchases if not removed completely
Defined in
verifyLicense
• verifyLicense: () => Promise
\<AmazonLicensingStatus
>
Type declaration
▸ (): Promise
\<AmazonLicensingStatus
>
Returns
Promise
\<AmazonLicensingStatus
>
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