isActive property
check 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. https://developer.android.com/reference/android/view/accessibility/AccessibilityWindowInfo#isActive()
Implementation
bool? isActive;