kvision / pl.treksoft.kvision.electron / InAppPurchase

InAppPurchase

(js) interface InAppPurchase : EventEmitter

Functions

(js)

addListener

abstract fun addListener(event: String, listener: (event: Event, transactions: Array<Transaction>) -> Unit): InAppPurchase
(js)

canMakePayments

abstract fun canMakePayments(): Boolean
(js)

getReceiptURL

abstract fun getReceiptURL(): String
(js)

on

abstract fun on(event: String, listener: (event: Event, transactions: Array<Transaction>) -> Unit): InAppPurchase
(js)

once

abstract fun once(event: String, listener: (event: Event, transactions: Array<Transaction>) -> Unit): InAppPurchase
(js)

purchaseProduct

abstract fun purchaseProduct(productID: String, quantity: Number? = definedExternally, callback: ((isProductValid: Boolean) -> Unit)? = definedExternally): Unit
(js)

removeListener

abstract fun removeListener(event: String, listener: (event: Event, transactions: Array<Transaction>) -> Unit): InAppPurchase