TMPurchase

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

Creates a TMPurchase.

Parameters

apiKey

The API key provided by Ticketmaster.

environment

The TMEnvironment to use.

brandColor

The brand color for UI elements.

purchaseUrlScheme

The client app's URL scheme, or null.

Throws

If the URL scheme is reserved.


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

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.