Skip to main content

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

Table of contents

Properties

Methods

Properties

beginRefundRequest

beginRefundRequest: (sku: string) => Promise\<RefundRequestStatus>

Type declaration

▸ (sku): Promise\<RefundRequestStatus>

Parameters
NameType
skustring
Returns

Promise\<RefundRequestStatus>

Defined in

modules/iosSk2.ts:60


buyProduct

buyProduct: BuyProduct

Defined in

modules/iosSk2.ts:50


buyPromotedProduct

buyPromotedProduct: buyPromotedProduct

Defined in

modules/iosSk2.ts:54


clearProducts

clearProducts: clearProducts

Defined in

modules/iosSk2.ts:52


clearTransaction

clearTransaction: clearTransaction

Defined in

modules/iosSk2.ts:51


disable

disable: () => Promise\<null>

Type declaration

▸ (): Promise\<null>

Returns

Promise\<null>

Defined in

modules/iosSk2.ts:59


finishTransaction

finishTransaction: finishTransaction

Defined in

modules/iosSk2.ts:55


getAvailableItems

getAvailableItems: getAvailableItems

Defined in

modules/iosSk2.ts:49


getItems

getItems: getItems

Defined in

modules/iosSk2.ts:48


getPendingTransactions

getPendingTransactions: getPendingTransactions

Defined in

modules/iosSk2.ts:56


presentCodeRedemptionSheet

presentCodeRedemptionSheet: presentCodeRedemptionSheet

Defined in

modules/iosSk2.ts:57


promotedProduct

promotedProduct: promotedProduct

Defined in

modules/iosSk2.ts:53


showManageSubscriptions

showManageSubscriptions: showManageSubscriptions

Defined in

modules/iosSk2.ts:58

Methods

addListener

addListener(eventType): void

addListener for NativeEventEmitter

Parameters

NameType
eventTypestring

Returns

void

Inherited from

NativeModuleProps.addListener

Defined in

modules/common.ts:12


currentEntitlement

currentEntitlement(sku): Promise\<TransactionSk2>

Parameters

NameType
skustring

Returns

Promise\<TransactionSk2>

Defined in

modules/iosSk2.ts:44


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


isAvailable

isAvailable(): number

Returns

number

Defined in

modules/iosSk2.ts:42


isEligibleForIntroOffer

isEligibleForIntroOffer(groupID): Promise\<Boolean>

Parameters

NameType
groupIDstring

Returns

Promise\<Boolean>

Defined in

modules/iosSk2.ts:46


latestTransaction

latestTransaction(sku): Promise\<TransactionSk2>

Parameters

NameType
skustring

Returns

Promise\<TransactionSk2>

Defined in

modules/iosSk2.ts:43


removeListeners

removeListeners(count): void

removeListeners for NativeEventEmitter

Parameters

NameType
countnumber

Returns

void

Inherited from

NativeModuleProps.removeListeners

Defined in

modules/common.ts:15


subscriptionStatus

subscriptionStatus(sku): Promise\<ProductStatus[]>

Parameters

NameType
skustring

Returns

Promise\<ProductStatus[]>

Defined in

modules/iosSk2.ts:45


sync

sync(): Promise\<null>

Returns

Promise\<null>

Defined in

modules/iosSk2.ts:47