common / com.revenuecat.purchases.common

Package com.revenuecat.purchases.common

Types

AppConfig

class AppConfig

Backend

class Backend

BackendErrorCode

enum class BackendErrorCode

BillingWrapper

class BillingWrapper : PurchasesUpdatedListener, BillingClientStateListener

Config

object Config

DateProvider

interface DateProvider

DefaultDateProvider

class DefaultDateProvider : DateProvider

Dispatcher

open class Dispatcher

HTTPClient

class HTTPClient

LogIntent

Enum of emojis for log messages according to intent.

enum class LogIntent

PlatformInfo

data class PlatformInfo

ProductInfo

class ProductInfo

PurchaseHistoryRecordWrapper

data class PurchaseHistoryRecordWrapper

PurchaseType

enum class PurchaseType

PurchaseWrapper

data class PurchaseWrapper

ReplaceSkuInfo

data class ReplaceSkuInfo

SubscriberAttributeError

data class SubscriberAttributeError

Extensions for External Classes

android.content.Context

com.android.billingclient.api.BillingResult

com.android.billingclient.api.Purchase

com.android.billingclient.api.PurchaseHistoryRecord

com.android.billingclient.api.SkuDetails

java.lang.Exception

java.util.Locale

kotlin.Int

kotlin.String

org.json.JSONObject

Properties

ATTRIBUTE_ERRORS_KEY

const val ATTRIBUTE_ERRORS_KEY: String

ATTRIBUTES_ERROR_RESPONSE_KEY

const val ATTRIBUTES_ERROR_RESPONSE_KEY: String

HTTP_NOT_FOUND_ERROR_CODE

const val HTTP_NOT_FOUND_ERROR_CODE: Int

HTTP_SERVER_ERROR_CODE

const val HTTP_SERVER_ERROR_CODE: Int

Functions

debugLog

fun debugLog(message: String): Unit

errorLog

fun errorLog(message: String): Unit
fun errorLog(error: PurchasesError): Unit

infoLog

fun infoLog(message: String): Unit

log

fun log(intent: LogIntent, message: String): Unit

toPurchasesError

fun BackendErrorCode.toPurchasesError(underlyingErrorMessage: String): PurchasesError
fun Result.toPurchasesError(): PurchasesError

toPurchasesErrorCode

fun BackendErrorCode.toPurchasesErrorCode(): PurchasesErrorCode

toSKUType

fun PurchaseType.toSKUType(): String?

warnLog

fun warnLog(message: String): Unit