# AccessibilityWindowInfoCompat

# AccessibilityWindowInfoCompat

Artifact:[androidx.core:core](https://developer.android.com/jetpack/androidx/releases/core)  
[View Source](https://cs.android.com/search?q=file:androidx/core/view/accessibility/AccessibilityWindowInfoCompat.java+class:androidx.core.view.accessibility.AccessibilityWindowInfoCompat)  
Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/core/view/accessibility/AccessibilityWindowInfoCompat "View this page in Java")

<br />

```
class AccessibilityWindowInfoCompat
```

<br />

*** ** * ** ***

Helper for accessing[android.view.accessibility.AccessibilityWindowInfo](https://developer.android.com/reference/android/view/accessibility/AccessibilityWindowInfo.html).

## Summary

|                                    ### Constants                                    |
|-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_ACCESSIBILITY_OVERLAY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#TYPE_ACCESSIBILITY_OVERLAY())` = 4` Window type: Windows that are overlaid*only* by an[android.accessibilityservice.AccessibilityService](https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html)for interception of user interactions without changing the windows an accessibility service can introspect. |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_APPLICATION](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#TYPE_APPLICATION())` = 1` Window type: This is an application window.                                                                                                                                                                                                                                                                                          |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_INPUT_METHOD](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#TYPE_INPUT_METHOD())` = 2` Window type: This is an input method window.                                                                                                                                                                                                                                                                                       |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_MAGNIFICATION_OVERLAY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#TYPE_MAGNIFICATION_OVERLAY())` = 6` Window type: A system window used to show the UI for the interaction with window-based magnification, which includes the magnified content and the option menu.                                                                                                                                                  |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_SPLIT_SCREEN_DIVIDER](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#TYPE_SPLIT_SCREEN_DIVIDER())` = 5` Window type: A system window used to divide the screen in split-screen mode.                                                                                                                                                                                                                                       |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | [TYPE_SYSTEM](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#TYPE_SYSTEM())` = 3` Window type: This is an system window.                                                                                                                                                                                                                                                                                                         |

|                                                                                                     ### Public constructors                                                                                                     |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AccessibilityWindowInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#AccessibilityWindowInfoCompat())`()` Creates a new AccessibilityWindowInfoCompat. |

|                                                                      ### Public functions                                                                       |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                             | [equals](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#equals(java.lang.Object))`(obj: `[Any](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-any/index.html)`!)`                                                                                                                                                                                           |
| [AccessibilityNodeInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat)`?`                   | [getAnchor](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getAnchor())`()` Gets the node that anchors this window to another.                                                                                                                                                                                                                                     |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                   | [getBoundsInScreen](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getBoundsInScreen(android.graphics.Rect))`(outBounds: `[Rect](https://developer.android.com/reference/android/graphics/Rect.html)`)` Gets the bounds of this window in the screen.                                                                                                              |
| [AccessibilityWindowInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat)`?`               | [getChild](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getChild(int))`(index: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Gets the child window at a given index.                                                                                                                                                           |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                     | [getChildCount](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getChildCount())`()` Gets the number of child windows.                                                                                                                                                                                                                                              |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                     | [getDisplayId](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getDisplayId())`()` Returns the ID of the display this window is on, for use with[getDisplay](https://developer.android.com/reference/android/hardware/display/DisplayManager.html#getDisplay(int)).                                                                                                 |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                     | [getId](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getId())`()` Gets the unique window id.                                                                                                                                                                                                                                                                     |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                     | [getLayer](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getLayer())`()` Gets the layer which determines the Z-order of the window.                                                                                                                                                                                                                               |
| [LocaleListCompat](https://developer.android.com/reference/kotlin/androidx/core/os/LocaleListCompat)                                                            | [getLocales](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getLocales())`()` Returns the[android.os.LocaleList](https://developer.android.com/reference/android/os/LocaleList.html)of the window.                                                                                                                                                                 |
| [AccessibilityWindowInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat)`?`               | [getParent](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getParent())`()` Gets the parent window if such.                                                                                                                                                                                                                                                        |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                   | [getRegionInScreen](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getRegionInScreen(android.graphics.Region))`(outRegion: `[Region](https://developer.android.com/reference/android/graphics/Region.html)`)` Gets the touchable region of this window in the screen.                                                                                              |
| [AccessibilityNodeInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat)`?`                   | [getRoot](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getRoot())`()` Gets the root node in the window's hierarchy.                                                                                                                                                                                                                                              |
| [AccessibilityNodeInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat)`?`                   | [getRoot](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getRoot(int))`(prefetchingStrategy: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Gets the root node in the window's hierarchy.                                                                                                                                         |
| [CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`?`                                                               | [getTitle](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getTitle())`()` Gets the title of the window.                                                                                                                                                                                                                                                            |
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)                                                                                   | [getTransitionTimeMillis](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getTransitionTimeMillis())`()` Returns the[uptimeMillis](https://developer.android.com/reference/android/os/SystemClock.html#uptimeMillis())at which the last transition happens.                                                                                                         |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                     | [getType](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getType())`()` Gets the type of the window.                                                                                                                                                                                                                                                               |
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)                                                                                     | [hashCode](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#hashCode())`()`                                                                                                                                                                                                                                                                                          |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                             | [isAccessibilityFocused](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#isAccessibilityFocused())`()` Gets if this window has accessibility focus.                                                                                                                                                                                                                 |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                             | [isActive](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#isActive())`()` Gets if this window is active.                                                                                                                                                                                                                                                           |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                             | [isFocused](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#isFocused())`()` Gets if this window has input focus.                                                                                                                                                                                                                                                   |
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)                                                                             | [isInPictureInPictureMode](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#isInPictureInPictureMode())`()` Check if the window is in picture-in-picture mode.                                                                                                                                                                                                       |
| `java-static `[AccessibilityWindowInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat)`?` | [obtain](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#obtain())`()` Returns a cached instance if such is available or a new one is created.                                                                                                                                                                                                                      |
| `java-static `[AccessibilityWindowInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat)`?` | [obtain](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#obtain(androidx.core.view.accessibility.AccessibilityWindowInfoCompat))`(info: `[AccessibilityWindowInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat)`?)` Returns a cached instance if such is available or a new one is created. |
| [Unit](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-unit/index.html)                                                                                   | ~~[recycle](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#recycle())~~`()` **This function is deprecated.** Accessibility Object recycling is no longer necessary or functional. <br />                                                                                                                                                                           |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html)                                                                               | [toString](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#toString())`()`                                                                                                                                                                                                                                                                                          |
| [AccessibilityWindowInfo](https://developer.android.com/reference/android/view/accessibility/AccessibilityWindowInfo.html)`?`                                   | [unwrap](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#unwrap())`()`                                                                                                                                                                                                                                                                                              |

## Constants

### TYPE_ACCESSIBILITY_OVERLAY

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_ACCESSIBILITY_OVERLAY = 4: Int
```

Window type: Windows that are overlaid*only* by an[android.accessibilityservice.AccessibilityService](https://developer.android.com/reference/android/accessibilityservice/AccessibilityService.html)for interception of user interactions without changing the windows an accessibility service can introspect. In particular, an accessibility service can introspect only windows that a sighted user can interact with which they can touch these windows or can type into these windows. For example, if there is a full screen accessibility overlay that is touchable, the windows below it will be introspectable by an accessibility service regardless they are covered by a touchable window.  

### TYPE_APPLICATION

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_APPLICATION = 1: Int
```

Window type: This is an application window. Such a window shows UI for interacting with an application.  

### TYPE_INPUT_METHOD

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_INPUT_METHOD = 2: Int
```

Window type: This is an input method window. Such a window shows UI for inputting text such as keyboard, suggestions, etc.  

### TYPE_MAGNIFICATION_OVERLAY

Added in[1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)  

```
const val TYPE_MAGNIFICATION_OVERLAY = 6: Int
```

Window type: A system window used to show the UI for the interaction with window-based magnification, which includes the magnified content and the option menu.  

### TYPE_SPLIT_SCREEN_DIVIDER

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_SPLIT_SCREEN_DIVIDER = 5: Int
```

Window type: A system window used to divide the screen in split-screen mode. This type of window is present only in split-screen mode.  

### TYPE_SYSTEM

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
const val TYPE_SYSTEM = 3: Int
```

Window type: This is an system window. Such a window shows UI for interacting with the system.  

## Public constructors

### AccessibilityWindowInfoCompat

Added in[1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)  

```
AccessibilityWindowInfoCompat()
```

Creates a new AccessibilityWindowInfoCompat.

Compatibility:

- Api \<30: Will not wrap an[android.view.accessibility.AccessibilityWindowInfo](https://developer.android.com/reference/android/view/accessibility/AccessibilityWindowInfo.html)instance.  

## Public functions

### equals

```
fun equals(obj: Any!): Boolean
```  

### getAnchor

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun getAnchor(): AccessibilityNodeInfoCompat?
```

Gets the node that anchors this window to another.  

|                                                                    Returns                                                                    |
|-----------------------------------------------------------------------------------------------------------------------------------------------|------------------------------------------|
| [AccessibilityNodeInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat)`?` | The anchor node, or`null`if none exists. |

### getBoundsInScreen

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun getBoundsInScreen(outBounds: Rect): Unit
```

Gets the bounds of this window in the screen.

Compatibility:

- API \<21: Does not operate.

|                                       Parameters                                        |
|-----------------------------------------------------------------------------------------|------------------------|
| `outBounds: `[Rect](https://developer.android.com/reference/android/graphics/Rect.html) | The out window bounds. |

### getChild

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun getChild(index: Int): AccessibilityWindowInfoCompat?
```

Gets the child window at a given index.  

|                                      Parameters                                      |
|--------------------------------------------------------------------------------------|------------|
| `index: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The index. |

|                                                                      Returns                                                                      |
|---------------------------------------------------------------------------------------------------------------------------------------------------|------------|
| [AccessibilityWindowInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat)`?` | The child. |

### getChildCount

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun getChildCount(): Int
```

Gets the number of child windows.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The child count. |

### getDisplayId

Added in[1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)  

```
fun getDisplayId(): Int
```

Returns the ID of the display this window is on, for use with[getDisplay](https://developer.android.com/reference/android/hardware/display/DisplayManager.html#getDisplay(int)).

Compatibility:

- Api \<33: Will return android.view.Display.DEFAULT_DISPLAY.

|                                   Returns                                   |
|-----------------------------------------------------------------------------|-------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | the logical display id. |

### getId

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun getId(): Int
```

Gets the unique window id.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|-------------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | windowId The window id. |

### getLayer

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun getLayer(): Int
```

Gets the layer which determines the Z-order of the window. Windows with greater layer appear on top of windows with lesser layer.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|-------------------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The window layer. |

### getLocales

Added in[1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)  

```
fun getLocales(): LocaleListCompat
```

Returns the[android.os.LocaleList](https://developer.android.com/reference/android/os/LocaleList.html)of the window.

Compatibility:

- Api \<34: Will return[getEmptyLocaleList](https://developer.android.com/reference/kotlin/androidx/core/os/LocaleListCompat#getEmptyLocaleList()).

|                                               Returns                                                |
|------------------------------------------------------------------------------------------------------|----------------------------|
| [LocaleListCompat](https://developer.android.com/reference/kotlin/androidx/core/os/LocaleListCompat) | the locales of the window. |

### getParent

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun getParent(): AccessibilityWindowInfoCompat?
```

Gets the parent window if such.  

|                                                                      Returns                                                                      |
|---------------------------------------------------------------------------------------------------------------------------------------------------|--------------------|
| [AccessibilityWindowInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat)`?` | The parent window. |

### getRegionInScreen

Added in[1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)  

```
fun getRegionInScreen(outRegion: Region): Unit
```

Gets the touchable region of this window in the screen.

Compatibility:

- API \<33: Gets the bounds of this window in the screen.
- API \<21: Does not operate.

|                                         Parameters                                          |
|---------------------------------------------------------------------------------------------|------------------------|
| `outRegion: `[Region](https://developer.android.com/reference/android/graphics/Region.html) | The out window region. |

### getRoot

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun getRoot(): AccessibilityNodeInfoCompat?
```

Gets the root node in the window's hierarchy.  

|                                                                    Returns                                                                    |
|-----------------------------------------------------------------------------------------------------------------------------------------------|----------------|
| [AccessibilityNodeInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat)`?` | The root node. |

### getRoot

Added in[1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)  

```
fun getRoot(prefetchingStrategy: Int): AccessibilityNodeInfoCompat?
```

Gets the root node in the window's hierarchy.  

|                                             Parameters                                             |
|----------------------------------------------------------------------------------------------------|---------------------------|
| `prefetchingStrategy: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | the prefetching strategy. |

|                                                                    Returns                                                                    |
|-----------------------------------------------------------------------------------------------------------------------------------------------|----------------|
| [AccessibilityNodeInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat)`?` | The root node. |

|                                                                See also                                                                 |
|-----------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------|
| [getParent](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityNodeInfoCompat#getParent(int)) | for a description of prefetching. |

### getTitle

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun getTitle(): CharSequence?
```

Gets the title of the window.  

|                                              Returns                                              |
|---------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------|
| [CharSequence](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-char-sequence/index.html)`?` | The title of the window, or the application label for the window if no title was explicitly set, or`null`if neither is available. |

### getTransitionTimeMillis

Added in[1.12.0](https://developer.android.com/jetpack/androidx/releases/core#1.12.0)  

```
fun getTransitionTimeMillis(): Long
```

Returns the[uptimeMillis](https://developer.android.com/reference/android/os/SystemClock.html#uptimeMillis())at which the last transition happens. A transition happens when[getBoundsInScreen](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#getBoundsInScreen(android.graphics.Rect))is changed.

Compatibility:

- Api \<34: Will return 0.

|                                    Returns                                    |
|-------------------------------------------------------------------------------|---------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html) | The transition timestamp. |

### getType

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun getType(): Int
```

Gets the type of the window.  

|                                   Returns                                   |
|-----------------------------------------------------------------------------|-----------|
| [Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | The type. |

|                                                                                 See also                                                                                 |
|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [TYPE_APPLICATION](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#TYPE_APPLICATION())                     |   |
| [TYPE_INPUT_METHOD](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#TYPE_INPUT_METHOD())                   |   |
| [TYPE_SYSTEM](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#TYPE_SYSTEM())                               |   |
| [TYPE_ACCESSIBILITY_OVERLAY](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#TYPE_ACCESSIBILITY_OVERLAY()) |   |

### hashCode

```
fun hashCode(): Int
```  

### isAccessibilityFocused

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun isAccessibilityFocused(): Boolean
```

Gets if this window has accessibility focus.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|----------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether has accessibility focus. |

### isActive

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun isActive(): Boolean
```

Gets if this window is active. An active window is the one the user is currently touching or the window has input focus and the user is not touching any window.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether this is the active window. |

### isFocused

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
fun isFocused(): Boolean
```

Gets if this window has input focus.  

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|--------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | Whether has input focus. |

### isInPictureInPictureMode

Added in[1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)  

```
fun isInPictureInPictureMode(): Boolean
```

Check if the window is in picture-in-picture mode.

Compatibility:

- API \<26: Returns false.

|                                       Returns                                       |
|-------------------------------------------------------------------------------------|---------------------------------------------------------------------|
| [Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html) | `true`if the window is in picture-in-picture mode,`false`otherwise. |

### obtain

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
java-static fun obtain(): AccessibilityWindowInfoCompat?
```

Returns a cached instance if such is available or a new one is created.  

|                                                                      Returns                                                                      |
|---------------------------------------------------------------------------------------------------------------------------------------------------|--------------|
| [AccessibilityWindowInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat)`?` | An instance. |

### obtain

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  

```
java-static fun obtain(info: AccessibilityWindowInfoCompat?): AccessibilityWindowInfoCompat?
```

Returns a cached instance if such is available or a new one is created. The returned instance is initialized from the given`info`.  

|                                                                        Parameters                                                                         |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------|
| `info: `[AccessibilityWindowInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat)`?` | The other info. |

|                                                                      Returns                                                                      |
|---------------------------------------------------------------------------------------------------------------------------------------------------|--------------|
| [AccessibilityWindowInfoCompat](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat)`?` | An instance. |

### recycle

Added in[1.1.0](https://developer.android.com/jetpack/androidx/releases/core#1.1.0)  
Deprecated in[1.10.0](https://developer.android.com/jetpack/androidx/releases/core#1.10.0)  

```
fun [recycle](https://developer.android.com/reference/kotlin/androidx/core/view/accessibility/AccessibilityWindowInfoCompat#recycle())(): Unit
```
| **This function is deprecated.**   
|
| Accessibility Object recycling is no longer necessary or functional.

Return an instance back to be reused.

**Note:**You must not touch the object after calling this function.  

### toString

```
fun toString(): String
```  

### unwrap

Added in[1.9.0](https://developer.android.com/jetpack/androidx/releases/core#1.9.0)  

```
fun unwrap(): AccessibilityWindowInfo?
```  

|                                                            Returns                                                            |
|-------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AccessibilityWindowInfo](https://developer.android.com/reference/android/view/accessibility/AccessibilityWindowInfo.html)`?` | The unwrapped[android.view.accessibility.AccessibilityWindowInfo](https://developer.android.com/reference/android/view/accessibility/AccessibilityWindowInfo.html). |