---
title: "keyboardAlignment"
description: "Adds the keyboard alignment option to the private IME configuration options.

It is not guaranteed if IME will comply with the options provided here."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


```kotlin
@ExperimentalTvFoundationApi
fun PlatformImeOptions.keyboardAlignment(
    horizontalAlignment: TvKeyboardAlignment
): PlatformImeOptions
```


Adds the keyboard alignment option to the private IME configuration options.

It is not guaranteed if IME will comply with the options provided here.

#### Parameters

| | |
| --- | --- |
| horizontalAlignment | defines the horizontal alignment `TvKeyboardAlignment` option for keyboard. |




