다음을 통해 공유


AccessibilityWindowInfo.IsActive Property

Definition

Gets if this window is active.

public bool IsActive { [Android.Runtime.Register("isActive", "()Z", "")] get; }
[<get: Android.Runtime.Register("isActive", "()Z", "")>]
member this.IsActive : bool

Property Value

Whether this is the active window.

Attributes

Remarks

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.

This is defined as the window that most recently fired one of the following events: AccessibilityEvent#TYPE_WINDOW_STATE_CHANGED, AccessibilityEvent#TYPE_VIEW_HOVER_ENTER, AccessibilityEvent#TYPE_VIEW_HOVER_EXIT. In other words, the last window shown that also has input focus.

Java documentation for android.view.accessibility.AccessibilityWindowInfo.isActive().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to