# UiCustomizationParams

Artifact: [androidx.photopicker:photopicker-activity](https://developer.android.com/jetpack/androidx/releases/photopicker) [View Source](https://cs.android.com/search?q=file:androidx/photopicker/activity/params/UiCustomizationParams.kt+class:androidx.photopicker.activity.params.UiCustomizationParams) Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/photopicker#1.0.0-alpha03)

*** ** * ** ***


```
class UiCustomizationParams
```

<br />

*** ** * ** ***

Defines UI customization options for the photopicker.

| See also |
|---|---|
| `https://developer.android.com/reference/android/provider/MediaStore.html#EXTRA_PICK_IMAGES_UI_CUSTOMIZATION_PARAMS` |   |
| `https://developer.android.com/reference/android/widget/photopicker/PhotoPickerUiCustomizationParams.html` |   |

## Summary

| ### Nested types |
|---|
| `class https://developer.android.com/reference/kotlin/androidx/photopicker/activity/params/UiCustomizationParams.Builder` A builder for constructing `https://developer.android.com/reference/kotlin/androidx/photopicker/activity/params/UiCustomizationParams` instance. |

| ### Constants |
|---|---|
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/photopicker/activity/params/UiCustomizationParams#ASPECT_RATIO_PORTRAIT_9_16() = 1` Requests a portrait 9:16 aspect ratio for the photopicker thumbnail sizing within the media grid. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/photopicker/activity/params/UiCustomizationParams#ASPECT_RATIO_SQUARE_1_1() = 0` Request the default square 1:1 ratio for the photopicker thumbnail sizing within the media grid. |
| `const https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/photopicker/activity/params/UiCustomizationParams#ASPECT_RATIO_UNDEFINED()` Undefined aspect ratio for the photopicker thumbnail sizing within the media grid. |

| ### Public properties |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html` | `https://developer.android.com/reference/kotlin/androidx/photopicker/activity/params/UiCustomizationParams#aspectRatio()` The set `https://developer.android.com/reference/kotlin/androidx/photopicker/activity/params/UiCustomizationParams.Companion.AspectRatio` for this request, defaulting to `https://developer.android.com/reference/kotlin/androidx/photopicker/activity/params/UiCustomizationParams#ASPECT_RATIO_UNDEFINED()`. |

## Constants

### ASPECT_RATIO_PORTRAIT_9_16

```
const val ASPECT_RATIO_PORTRAIT_9_16 = 1: Int
```

Requests a portrait 9:16 aspect ratio for the photopicker thumbnail sizing within the media grid.

| See also |
|---|---|
| `https://developer.android.com/reference/android/widget/photopicker/PhotoPickerUiCustomizationParams.html#ASPECT_RATIO_PORTRAIT_9_16` |   |

### ASPECT_RATIO_SQUARE_1_1

```
const val ASPECT_RATIO_SQUARE_1_1 = 0: Int
```

Request the default square 1:1 ratio for the photopicker thumbnail sizing within the media grid.

| See also |
|---|---|
| `https://developer.android.com/reference/android/widget/photopicker/PhotoPickerUiCustomizationParams.html#ASPECT_RATIO_SQUARE_1_1` |   |

### ASPECT_RATIO_UNDEFINED

```
const val ASPECT_RATIO_UNDEFINED: Int
```

Undefined aspect ratio for the photopicker thumbnail sizing within the media grid.

## Public properties

### aspectRatio

Added in [1.0.0-alpha03](https://developer.android.com/jetpack/androidx/releases/photopicker#1.0.0-alpha03)

```
val aspectRatio: Int
```

The set `https://developer.android.com/reference/kotlin/androidx/photopicker/activity/params/UiCustomizationParams.Companion.AspectRatio` for this request, defaulting to `https://developer.android.com/reference/kotlin/androidx/photopicker/activity/params/UiCustomizationParams#ASPECT_RATIO_UNDEFINED()`.