Insets
class Insets
kotlin.Any | |
↳ | android.service.voice.VoiceInteractionSession.Insets |
Information about where interesting parts of the input method UI appear.
Summary
Constants | |
---|---|
static Int |
Option for |
static Int |
Option for |
static Int |
Option for |
Public constructors | |
---|---|
Insets() |
Properties | |
---|---|
Rect! |
This is the part of the UI that is the main content. |
Int |
Determine which area of the window is touchable by the user. |
Region! |
This is the region of the UI that is touchable. |
Constants
TOUCHABLE_INSETS_CONTENT
static val TOUCHABLE_INSETS_CONTENT: Int
Option for touchableInsets
: the area inside of the content insets can be touched.
Value: 1
TOUCHABLE_INSETS_FRAME
static val TOUCHABLE_INSETS_FRAME: Int
Option for touchableInsets
: the entire window frame can be touched.
Value: 0
TOUCHABLE_INSETS_REGION
static val TOUCHABLE_INSETS_REGION: Int
Option for touchableInsets
: the region specified by touchableRegion
can be touched.
Value: 3
Public constructors
Insets
Insets()
Properties
contentInsets
val contentInsets: Rect!
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.
touchableInsets
var touchableInsets: Int
Determine which area of the window is touchable by the user. May be one of: TOUCHABLE_INSETS_FRAME
, TOUCHABLE_INSETS_CONTENT
, or TOUCHABLE_INSETS_REGION
.
touchableRegion
val touchableRegion: Region!
This is the region of the UI that is touchable. It is used when touchableInsets
is set to TOUCHABLE_INSETS_REGION
. The region should be specified relative to the origin of the window frame.