CountrySelectorUtils

Utility for managing country selector functionality in the prepurchase flow.

Functions

Link copied to clipboard
fun getCountryFlag(marketDomain: TMMarketDomain, context: Context): Drawable?

Retrieves the flag drawable for a market domain.

Link copied to clipboard

Retrieves a sorted list of supported countries for the country selector.

Link copied to clipboard
fun getMarketRegion(market: TMMarketDomain, marketID: Int): Int?

Retrieves the region ID for a market and market ID.

Link copied to clipboard

Sets the country selector configuration.