Android Guides | Samples

Android.Views.WindowId Class

Safe identifier for a window.

See Also: WindowId

Syntax

[Android.Runtime.Register("android/view/WindowId", DoNotGenerateAcw=true)]
public class WindowId : Object, IParcelable, IDisposable

Remarks

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.

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 18

The members of Android.Views.WindowId are listed below.

See Also: Object

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
static
CreatorIParcelableCreator.
[read-only]
IsFocusedBoolean. Retrieve the current focus state of the associated window.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
RegisterFocusObserver(WindowId+FocusObserver)
Start monitoring for changes in the focus state of the window.
UnregisterFocusObserver(WindowId+FocusObserver)
Stop monitoring changes in the focus state of the window.
WriteToParcel(Parcel, ParcelableWriteFlags)
Flatten this object in to a Parcel.