TMPre Purchase
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.
use Debug Analytics
Whether to enable debug analytics, defaults to false.
dismiss Upon Completion
Whether to close the SDK on completion, defaults to true.
brand Color
The brand color for UI elements, or null if not set.
brand Tool Bar Action Icon
The toolbar action icon resource, or null if not set.
discovery APIKey
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.
Creates a TMPrePurchase with specified environment, color, and API key.
Properties
Functions
Link copied to clipboard
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
Creates an Intent with prepurchase configuration.
Link copied to clipboard