TryYourSize.Configuration
Properties
Section titled “Properties”appearanceAppearanceOptional= Appearance()Colours, font and corner radius for the button and the window.
localeString?Optional= nullBCP 47 language for the button and the window; null: the device's language.
packageNameString?Optional= nullThe 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= falseLets chrome://inspect attach to the window. Debug builds only.
Example
Section titled “Example”val tys = TryYourSize(context, "pk_test_…", TryYourSize.Configuration( appearance = Appearance(borderRadius = 10f), locale = "es",))let tys = try TryYourSize(publishableKey: "pk_test_…", configuration: .init( appearance: Appearance(borderRadius: 10), locale: "es"))await configure("pk_test_…", { appearance: { variables: { borderRadius: 10 } }, locale: "es" });final tys = await TryYourSize.create('pk_test_…', appearance: const Appearance(borderRadius: 10), locale: 'es');Was this page helpful?
Thank you. We read every answer.