# TryYourSize.Configuration

> TryYourSize.Configuration

Source: https://docs.tryyoursize.com/reference/android/configuration/

*Type* · `com.tryyoursize:tryyoursize-android`

## Properties

- **`appearance`** (`Appearance`, optional, default `Appearance()`): Colours, font and corner radius for the button and the window.
- **`locale`** (`String?`, optional, default `null`): BCP 47 language for the button and the window; null: the device's language.
- **`packageName`** (`String?`, optional, default `null`): The app's identity registered for the store; null: the context's package name.
- **`embedOrigin`** (`String`, optional, default `"https://embed.tryyoursize.com"`): Our window's origin (change only for staging or local development).
- **`webContentsDebugging`** (`Boolean`, optional, default `false`): Lets chrome://inspect attach to the window. Debug builds only.

## Example

**Kotlin**

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

**Swift**

```swift
let tys = try TryYourSize(publishableKey: "pk_test_…", configuration: .init(
    appearance: Appearance(borderRadius: 10),
    locale: "es"))
```

**React Native**

```tsx
await configure("pk_test_…", { appearance: { variables: { borderRadius: 10 } }, locale: "es" });
```

**Flutter**

```dart
final tys = await TryYourSize.create('pk_test_…', appearance: const Appearance(borderRadius: 10), locale: 'es');
```
