TMPurchase
constructor(apiKey: String, environment: TMEnvironment, @ColorInt brandColor: Int, purchaseUrlScheme: String? = null)
Creates a TMPurchase.
Parameters
api Key
The API key provided by Ticketmaster.
environment
The TMEnvironment to use.
brand Color
The brand color for UI elements.
purchase Url Scheme
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
api Key
The API key provided by Ticketmaster.
environment
The TMEnvironment to use, defaults to Production.
use Debug Analytics
Whether to enable debug analytics, defaults to false.
disable UFCLogin Management
Whether to disable UFC login, 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.
purchase Url Scheme
The client app's URL scheme, or null if not set.