TMPrePurchase

class TMPrePurchase(val environment: TMEnvironment = TMEnvironment.Production, val useDebugAnalytics: Boolean = false, val dismissUponCompletion: Boolean = true, @ColorInt val brandColor: Int? = null, @DrawableRes val brandToolBarActionIcon: Int? = null, val discoveryAPIKey: String) : Parcelable

Configuration for initializing the prepurchase SDK.

Parameters

environment

The TMEnvironment to use, defaults to Production.

useDebugAnalytics

Whether to enable debug analytics, defaults to false.

dismissUponCompletion

Whether to close the SDK on completion, defaults to true.

brandColor

The brand color for UI elements, or null if not set.

brandToolBarActionIcon

The toolbar action icon resource, or null if not set.

discoveryAPIKey

The API key for the discovery service.

Constructors

Link copied to clipboard
constructor(environment: TMEnvironment, @ColorInt brandColor: Int, @DrawableRes brandActionIcon: Int, discoApiKey: String)

Creates a TMPrePurchase with specified environment, color, icon, and API key.

constructor(environment: TMEnvironment, @ColorInt brandColor: Int, discoApiKey: String)

Creates a TMPrePurchase with specified environment, color, and API key.

constructor(environment: TMEnvironment = TMEnvironment.Production, useDebugAnalytics: Boolean = false, dismissUponCompletion: Boolean = true, @ColorInt brandColor: Int? = null, @DrawableRes brandToolBarActionIcon: Int? = null, discoveryAPIKey: String)

Properties

Link copied to clipboard
val brandColor: Int? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val environment: TMEnvironment
Link copied to clipboard

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
fun getPrePurchaseBundle(tmPrePurchaseWebsiteConfiguration: TMPrePurchaseWebsiteConfiguration): Bundle

Creates a bundle with prepurchase configuration.

fun getPrePurchaseBundle(tmPrePurchaseWebsiteConfiguration: TMPrePurchaseWebsiteConfiguration, tmAuthenticationParams: TMAuthenticationParams, countrySelectorConfiguration: TMPrePurchaseCountryConfiguration): Bundle

Creates a bundle with prepurchase and authentication configurations.

Link copied to clipboard
fun getPrePurchaseIntent(tmPurchaseWebsiteConfiguration: TMPrePurchaseWebsiteConfiguration): Intent

Creates an Intent with prepurchase configuration.

Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)