Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Constants](https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#constants) \| [Fields](https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#lfields) \| [Ctors](https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#pubctors) \| [Inherited Methods](https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#inhmethods)

# InputMethodService.Insets

*** ** * ** ***

` public static final class InputMethodService.Insets `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.inputmethodservice.InputMethodService.Insets |

<br />

*** ** * ** ***

Information about where interesting parts of the input method UI appear.

## Summary

| ### Constants ||
|---|---|
| `int` | `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#TOUCHABLE_INSETS_CONTENT` Option for `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#touchableInsets`: the area inside of the content insets can be touched. |
| `int` | `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#TOUCHABLE_INSETS_FRAME` Option for `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#touchableInsets`: the entire window frame can be touched. |
| `int` | `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#TOUCHABLE_INSETS_REGION` Option for `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#touchableInsets`: the region specified by `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#touchableRegion` can be touched. |
| `int` | `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#TOUCHABLE_INSETS_VISIBLE` Option for `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#touchableInsets`: the area inside of the visible insets can be touched. |

| ### Fields ||
|---|---|
| ` public int` | `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#contentTopInsets` This is the top part of the UI that is the main content. |
| ` public int` | `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#touchableInsets` Determine which area of the window is touchable by the user. |
| ` public final https://developer.android.com/reference/android/graphics/Region` | `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#touchableRegion` This is the region of the UI that is touchable. |
| ` public int` | `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#visibleTopInsets` This is the top part of the UI that is visibly covering the application behind it. |

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#Insets()() ` |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Constants

### TOUCHABLE_INSETS_CONTENT

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TOUCHABLE_INSETS_CONTENT
```

Option for `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#touchableInsets`: the area inside of the content insets can be touched.

<br />

Constant Value: 1 (0x00000001)

### TOUCHABLE_INSETS_FRAME

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TOUCHABLE_INSETS_FRAME
```

Option for `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#touchableInsets`: the entire window frame can be touched.

<br />

Constant Value: 0 (0x00000000)

### TOUCHABLE_INSETS_REGION

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TOUCHABLE_INSETS_REGION
```

Option for `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#touchableInsets`: the region specified by `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#touchableRegion` can be touched.

<br />

Constant Value: 3 (0x00000003)

### TOUCHABLE_INSETS_VISIBLE

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public static final int TOUCHABLE_INSETS_VISIBLE
```

Option for `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#touchableInsets`: the area inside of the visible insets can be touched.

<br />

Constant Value: 2 (0x00000002)

## Fields

### contentTopInsets

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int contentTopInsets
```

This is the top part of the UI that is the main content. It is used to determine the basic space needed, to resize/pan the application behind. It is assumed that this inset does not change very much, since any change will cause a full resize/pan of the application behind. This value is relative to the top edge of the input method window.

<br />

### touchableInsets

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int touchableInsets
```

Determine which area of the window is touchable by the user. May be one of: `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#TOUCHABLE_INSETS_FRAME`, `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#TOUCHABLE_INSETS_CONTENT`, `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#TOUCHABLE_INSETS_VISIBLE`, or `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#TOUCHABLE_INSETS_REGION`.

<br />

### touchableRegion

Added in [API level 11](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public final Region touchableRegion
```

This is the region of the UI that is touchable. It is used when `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#touchableInsets` is set to `https://developer.android.com/reference/android/inputmethodservice/InputMethodService.Insets#TOUCHABLE_INSETS_REGION`. The region should be specified relative to the origin of the window frame.

<br />

### visibleTopInsets

Added in [API level 3](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)

```
public int visibleTopInsets
```

This is the top part of the UI that is visibly covering the application behind it. This provides finer-grained control over visibility, allowing you to change it relatively frequently (such as hiding or showing candidates) without disrupting the underlying UI too much. For example, this will never resize the application UI, will only pan if needed to make the current focus visible, and will not aggressively move the pan position when this changes unless needed to make the focus visible. This value is relative to the top edge of the input method window.

<br />

## Public constructors

### Insets

```
public Insets ()
```

<br />

<br />