# VoiceInteractionSession.Insets

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

# VoiceInteractionSession.Insets

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/service/voice/VoiceInteractionSession.Insets "View this page in Kotlin")\|Java

`
public
static
final

class
VoiceInteractionSession.Insets
`  
`

extends `[Object](https://developer.android.com/reference/java/lang/Object)`


``


`

|---|------------------------------------------------------|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.service.voice.VoiceInteractionSession.Insets |

<br />

*** ** * ** ***

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

## Summary

|                                                                                                                                                                                                                              ### Constants                                                                                                                                                                                                                              ||
|-------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `int` | [TOUCHABLE_INSETS_CONTENT](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#TOUCHABLE_INSETS_CONTENT) Option for[touchableInsets](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#touchableInsets): the area inside of the content insets can be touched.                                                                                                               |
| `int` | [TOUCHABLE_INSETS_FRAME](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#TOUCHABLE_INSETS_FRAME) Option for[touchableInsets](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#touchableInsets): the entire window frame can be touched.                                                                                                                                 |
| `int` | [TOUCHABLE_INSETS_REGION](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#TOUCHABLE_INSETS_REGION) Option for[touchableInsets](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#touchableInsets): the region specified by[touchableRegion](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#touchableRegion)can be touched. |

|                                                                                                                                       ### Fields                                                                                                                                        ||
|-------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| ` public final `[Rect](https://developer.android.com/reference/android/graphics/Rect)     | [contentInsets](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#contentInsets) This is the part of the UI that is the main content.             |
| ` public int`                                                                             | [touchableInsets](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#touchableInsets) Determine which area of the window is touchable by the user. |
| ` public final `[Region](https://developer.android.com/reference/android/graphics/Region) | [touchableRegion](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#touchableRegion) This is the region of the UI that is touchable.              |

|                                                  ### Public constructors                                                   ||
|-------------------------------------------------------------------------------------------------------------------------|---|
| ` `[Insets](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#Insets())`() ` |

| ### Inherited methods |
|-----------------------|---|
| From class` `[java.lang.Object](https://developer.android.com/reference/java/lang/Object)` ` |--------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ` `[Object](https://developer.android.com/reference/java/lang/Object)          | ` `[clone](https://developer.android.com/reference/java/lang/Object#clone())`() ` Creates and returns a copy of this object.                                                                                                                                                      | | ` boolean`                                                                     | ` `[equals](https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object))`(`[Object](https://developer.android.com/reference/java/lang/Object)` obj) ` Indicates whether some other object is "equal to" this one.                                           | | ` void`                                                                        | ` `[finalize](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 `[Class](https://developer.android.com/reference/java/lang/Class)`<?>` | ` `[getClass](https://developer.android.com/reference/java/lang/Object#getClass())`() ` Returns the runtime class of this`Object`.                                                                                                                                                | | ` int`                                                                         | ` `[hashCode](https://developer.android.com/reference/java/lang/Object#hashCode())`() ` Returns a hash code value for the object.                                                                                                                                                 | | ` final void`                                                                  | ` `[notify](https://developer.android.com/reference/java/lang/Object#notify())`() ` Wakes up a single thread that is waiting on this object's monitor.                                                                                                                            | | ` final void`                                                                  | ` `[notifyAll](https://developer.android.com/reference/java/lang/Object#notifyAll())`() ` Wakes up all threads that are waiting on this object's monitor.                                                                                                                         | | ` `[String](https://developer.android.com/reference/java/lang/String)          | ` `[toString](https://developer.android.com/reference/java/lang/Object#toString())`() ` Returns a string representation of the object.                                                                                                                                            | | ` final void`                                                                  | ` `[wait](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`                                                                  | ` `[wait](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`                                                                  | ` `[wait](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 23](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

```
public static final int TOUCHABLE_INSETS_CONTENT
```

Option for[touchableInsets](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#touchableInsets): the area inside of the content insets can be touched.

<br />

Constant Value: 1 (0x00000001)  

### TOUCHABLE_INSETS_FRAME

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

```
public static final int TOUCHABLE_INSETS_FRAME
```

Option for[touchableInsets](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#touchableInsets): the entire window frame can be touched.

<br />

Constant Value: 0 (0x00000000)  

### TOUCHABLE_INSETS_REGION

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

```
public static final int TOUCHABLE_INSETS_REGION
```

Option for[touchableInsets](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#touchableInsets): the region specified by[touchableRegion](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#touchableRegion)can be touched.

<br />

Constant Value: 3 (0x00000003)

## Fields

### contentInsets

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

```
public final Rect contentInsets
```

This is the 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 23](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:[TOUCHABLE_INSETS_FRAME](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#TOUCHABLE_INSETS_FRAME),[TOUCHABLE_INSETS_CONTENT](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#TOUCHABLE_INSETS_CONTENT), or[TOUCHABLE_INSETS_REGION](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#TOUCHABLE_INSETS_REGION).

<br />

### touchableRegion

Added in[API level 23](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[touchableInsets](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#touchableInsets)is set to[TOUCHABLE_INSETS_REGION](https://developer.android.com/reference/android/service/voice/VoiceInteractionSession.Insets#TOUCHABLE_INSETS_REGION). The region should be specified relative to the origin of the window frame.

<br />

## Public constructors

### Insets

```
public Insets ()
```

<br />

<br />