Added in API level 18

WindowId

open class WindowId : Parcelable
kotlin.Any
   ↳ android.view.WindowId

Safe identifier for a window. This currently allows you to retrieve and observe the input focus state of the window. Most applications will not use this, instead relying on the simpler (and more efficient) methods available on View. This classes is useful when window input interactions need to be done across processes: the class itself is a Parcelable that can be passed to other processes for them to interact with your window, and it provides a limited safe API that doesn't allow the other process to negatively harm your window.

Summary

Nested classes
abstract

Subclass for observing changes to the focus state of an WindowId.

Inherited constants
Public methods
open Int

open Boolean
equals(other: Any?)

Comparison operator on two IntentSender objects, such that true is returned then they both represent the same operation from the same package.

open Int

open Boolean

Retrieve the current focus state of the associated window.

open Unit

Start monitoring for changes in the focus state of the window.

open String

open Unit

Stop monitoring changes in the focus state of the window.

open Unit
writeToParcel(out: Parcel, flags: Int)

Properties
static Parcelable.Creator<WindowId!>

Public methods

describeContents

Added in API level 18
open fun describeContents(): Int
Return
Int a bitmask indicating the set of special object types marshaled by this Parcelable object instance. Value is either 0 or android.os.Parcelable#CONTENTS_FILE_DESCRIPTOR

equals

Added in API level 18
open fun equals(other: Any?): Boolean

Comparison operator on two IntentSender objects, such that true is returned then they both represent the same operation from the same package.

Parameters
obj the reference object with which to compare.
otherObj This value may be null.
Return
Boolean true if this object is the same as the obj argument; false otherwise.

hashCode

Added in API level 18
open fun hashCode(): Int
Return
Int a hash code value for this object.

isFocused

Added in API level 18
open fun isFocused(): Boolean

Retrieve the current focus state of the associated window.

registerFocusObserver

Added in API level 18
open fun registerFocusObserver(observer: WindowId.FocusObserver!): Unit

Start monitoring for changes in the focus state of the window.

toString

Added in API level 18
open fun toString(): String
Return
String a string representation of the object.

unregisterFocusObserver

Added in API level 18
open fun unregisterFocusObserver(observer: WindowId.FocusObserver!): Unit

Stop monitoring changes in the focus state of the window.

writeToParcel

Added in API level 18
open fun writeToParcel(
    out: Parcel,
    flags: Int
): Unit
Parameters
dest The Parcel in which the object should be written. This value cannot be null.
flags Int: Additional flags about how the object should be written. May be 0 or PARCELABLE_WRITE_RETURN_VALUE. Value is either 0 or a combination of android.os.Parcelable#PARCELABLE_WRITE_RETURN_VALUE, and android.os.Parcelable.PARCELABLE_ELIDE_DUPLICATES

Properties

CREATOR

Added in API level 18
static val CREATOR: Parcelable.Creator<WindowId!>