Android Guides | Samples

Android.Views.WindowId.FocusObserver Class

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

See Also: WindowId+FocusObserver

Syntax

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

Remarks

Subclass for observing changes to the focus state of an WindowId. You should use the same instance of this class for observing multiple WindowId objects, since this class is fairly heavy-weight -- the base class includes all of the mechanisms for connecting to and receiving updates from the 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.FocusObserver are listed below.

See Also: Object

Public Constructors

Construct a new observer.

Protected Constructors

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

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

abstract
OnFocusGained(WindowId)
Called when one of the monitored windows gains input focus.
abstract
OnFocusLost(WindowId)
Called when one of the monitored windows loses input focus.