TMPurchase

class TMPurchase(val apiKey: String, val environment: TMEnvironment = TMEnvironment.Production, val useDebugAnalytics: Boolean = false, val disableUFCLoginManagement: Boolean = false, val dismissUponCompletion: Boolean = true, @ColorInt val brandColor: Int? = null, val purchaseUrlScheme: String?) : Parcelable

Configuration for initializing the purchase SDK.

Parameters

apiKey

The API key provided by Ticketmaster.

environment

The TMEnvironment to use, defaults to Production.

useDebugAnalytics

Whether to enable debug analytics, defaults to false.

disableUFCLoginManagement

Whether to disable UFC login, 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.

purchaseUrlScheme

The client app's URL scheme, or null if not set.

Constructors

Link copied to clipboard
constructor(apiKey: String, environment: TMEnvironment, @ColorInt brandColor: Int, purchaseUrlScheme: String? = null)

Creates a TMPurchase.

constructor(apiKey: String, environment: TMEnvironment = TMEnvironment.Production, useDebugAnalytics: Boolean = false, disableUFCLoginManagement: Boolean = false, dismissUponCompletion: Boolean = true, @ColorInt brandColor: Int? = null, purchaseUrlScheme: String?)

Properties

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

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
fun getPurchaseBundle(tmPurchaseWebsiteConfiguration: TMPurchaseWebsiteConfiguration, tmAuthenticationParams: TMAuthenticationParams): Bundle

Creates a bundle with purchase and authentication configurations.

Link copied to clipboard
fun getPurchaseIntent(tmPurchaseWebsiteConfiguration: TMPurchaseWebsiteConfiguration): Intent

Creates an Intent with purchase configuration.

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