Skip to content

TryYourSize.Configuration

Typecom.tryyoursize:tryyoursize-android

appearanceAppearanceOptional= Appearance()

Colours, font and corner radius for the button and the window.

localeString?Optional= null

BCP 47 language for the button and the window; null: the device's language.

packageNameString?Optional= null

The app's identity registered for the store; null: the context's package name.

embedOriginStringOptional= "https://embed.tryyoursize.com"

Our window's origin (change only for staging or local development).

webContentsDebuggingBooleanOptional= false

Lets chrome://inspect attach to the window. Debug builds only.

val tys = TryYourSize(context, "pk_test_…", TryYourSize.Configuration(
appearance = Appearance(borderRadius = 10f),
locale = "es",
))

Was this page helpful?