---
title: "InputMode"
description: "This value is used to represent the InputMode that the system is currently in."
type: "class"
---

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


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>


```kotlin
value class InputMode internal constructor(@Suppress("unused") private val value: Int)
```


This value is used to represent the InputMode that the system is currently in.


## Companion Object

#### Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Touch = InputMode(1)
```


The system is put into `Touch` mode when a user touches the screen.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val Keyboard = InputMode(2)
```


The system is put into `Keyboard` mode when a user presses a hardware key.





