set Up Country Switcher
fun setUpCountrySwitcher(context: Context, toolbar: Toolbar?, transparentBG: View?, countrySwitchBottomSheetBehavior: BottomSheetBehavior<View>?, bottomSheet: ConstraintLayout?, window: Window, labelAnalytics: String, hideCountrySelector: Boolean, tmPrePurchaseCountryPickerListener: TMPrePurchaseCountrySelectorListener?, selection: (TMMarketDomain) -> Unit)
Sets up the country switcher UI in the prepurchase flow.
Parameters
context
The Context used for accessing resources.
toolbar
The Toolbar containing the country selector, or null if not set.
transparent BG
The View for the transparent background, or null if not set.
country Switch Bottom Sheet Behavior
The BottomSheetBehavior for the country switcher, or null if not set.
bottom Sheet
The ConstraintLayout for the bottom sheet, or null if not set.
window
The Window for status bar adjustments.
label Analytics
The analytics label for tracking the setup.
hide Country Selector
Whether to hide the country selector UI.
tm Pre Purchase Country Picker Listener
The TMPrePurchaseCountrySelectorListener for country picker events, or null if not set.
selection
A callback invoked with the selected TMMarketDomain.