Android Guides | Samples

Android.App.Dialog.OnWindowFocusChanged Method

This hook is called whenever the window focus changes.

Syntax

[Android.Runtime.Register("onWindowFocusChanged", "(Z)V", "GetOnWindowFocusChanged_ZHandler")]
public virtual Void OnWindowFocusChanged (Boolean hasFocus)

Parameters

hasFocus
Whether the window now has focus.

Remarks

This hook is called whenever the window focus changes. See View.OnWindowFocusChanged(Boolean) for more information.

[Android Documentation]

Requirements

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