View.DispatchWindowFocusChanged(Boolean) Method
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Called when the window containing this view gains or loses window focus.
[Android.Runtime.Register("dispatchWindowFocusChanged", "(Z)V", "GetDispatchWindowFocusChanged_ZHandler")]
public virtual void DispatchWindowFocusChanged (bool hasFocus);
[<Android.Runtime.Register("dispatchWindowFocusChanged", "(Z)V", "GetDispatchWindowFocusChanged_ZHandler")>]
abstract member DispatchWindowFocusChanged : bool -> unit
override this.DispatchWindowFocusChanged : bool -> unit
- hasFocus
- Boolean
True if the window containing this view now has focus, false otherwise.
- Attributes
Called when the window containing this view gains or loses window focus. ViewGroups should override to route to their children.
Java documentation for android.view.View.dispatchWindowFocusChanged(boolean)
.
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.
Produkt | Wersje |
---|---|
.NET for Android | .NET for Android API 34, .NET for Android API 35 |