IapIosSk2.IosModulePropsSk2
react-native-iap / Exports / IapIosSk2 / IosModulePropsSk2
Interface: IosModulePropsSk2
IapIosSk2.IosModulePropsSk2
Common interface for all native modules (iOS — AppStore, Android — PlayStore and Amazon).
Hierarchy
↳
IosModulePropsSk2
Table of contents
Properties
- beginRefundRequest
- buyProduct
- buyPromotedProduct
- clearProducts
- clearTransaction
- disable
- finishTransaction
- getAvailableItems
- getItems
- getPendingTransactions
- presentCodeRedemptionSheet
- promotedProduct
- showManageSubscriptions
Methods
- addListener
- currentEntitlement
- endConnection
- initConnection
- isAvailable
- isEligibleForIntroOffer
- latestTransaction
- removeListeners
- subscriptionStatus
- sync
Properties
beginRefundRequest
• beginRefundRequest: (sku
: string
) => Promise
\<RefundRequestStatus
>
Type declaration
▸ (sku
): Promise
\<RefundRequestStatus
>
Parameters
Name | Type |
---|---|
sku | string |
Returns
Promise
\<RefundRequestStatus
>
Defined in
buyProduct
• buyProduct: BuyProduct
Defined in
buyPromotedProduct
• buyPromotedProduct: buyPromotedProduct
Defined in
clearProducts
• clearProducts: clearProducts
Defined in
clearTransaction
• clearTransaction: clearTransaction
Defined in
disable
• disable: () => Promise
\<null
>
Type declaration
▸ (): Promise
\<null
>
Returns
Promise
\<null
>
Defined in
finishTransaction
• finishTransaction: finishTransaction
Defined in
getAvailableItems
• getAvailableItems: getAvailableItems
Defined in
getItems
• getItems: getItems
Defined in
getPendingTransactions
• getPendingTransactions: getPendingTransactions
Defined in
presentCodeRedemptionSheet
• presentCodeRedemptionSheet: presentCodeRedemptionSheet
Defined in
promotedProduct
• promotedProduct: promotedProduct
Defined in
showManageSubscriptions
• showManageSubscriptions: showManageSubscriptions
Defined in
Methods
addListener
▸ addListener(eventType
): void
addListener for NativeEventEmitter
Parameters
Name | Type |
---|---|
eventType | string |
Returns
void
Inherited from
Defined in
currentEntitlement
▸ currentEntitlement(sku
): Promise
\<TransactionSk2
>
Parameters
Name | Type |
---|---|
sku | string |
Returns
Promise
\<TransactionSk2
>
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
isAvailable
▸ isAvailable(): number
Returns
number
Defined in
isEligibleForIntroOffer
▸ isEligibleForIntroOffer(groupID
): Promise
\<Boolean
>
Parameters
Name | Type |
---|---|
groupID | string |
Returns
Promise
\<Boolean
>
Defined in
latestTransaction
▸ latestTransaction(sku
): Promise
\<TransactionSk2
>
Parameters
Name | Type |
---|---|
sku | string |
Returns
Promise
\<TransactionSk2
>
Defined in
removeListeners
▸ removeListeners(count
): void
removeListeners for NativeEventEmitter
Parameters
Name | Type |
---|---|
count | number |
Returns
void
Inherited from
NativeModuleProps.removeListeners
Defined in
subscriptionStatus
▸ subscriptionStatus(sku
): Promise
\<ProductStatus
[]>
Parameters
Name | Type |
---|---|
sku | string |
Returns
Promise
\<ProductStatus
[]>
Defined in
sync
▸ sync(): Promise
\<null
>
Returns
Promise
\<null
>