configure()
Call once at startup with your publishable key. Register your app for the key in Studio: ios-app://<bundle id> and android-app://<package> (test mode today).
function configure(publishableKey: string, options: ConfigureOptions = {}): Promise<void>Parameters
Section titled “Parameters”publishableKeystringRequiredYour publishable key (pk_test_… / pk_live_…).
optionsConfigureOptionsOptional= {}Properties
appearanceAppearanceOptionallocalestringOptionalBCP 47; default: the device language.
embedOriginstringOptionalOur window's origin, for staging or local development only.
Errors
Section titled “Errors”An Error for a secret key or a malformed key, before anything reaches the native side.
Example
Section titled “Example”await configure("pk_test_…", { appearance: { variables: { borderRadius: 10 } }, locale: "es" });let tys = try TryYourSize(publishableKey: "pk_test_…", configuration: .init( appearance: Appearance(borderRadius: 10), locale: "es"))val tys = TryYourSize(context, "pk_test_…", TryYourSize.Configuration( appearance = Appearance(borderRadius = 10f), 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.