语言

WindowId.FocusObserver.OnFocusGained(WindowId) 方法

定义

当其中一个受监视窗口获得输入焦点时调用。

[Android.Runtime.Register("onFocusGained", "(Landroid/view/WindowId;)V", "GetOnFocusGained_Landroid_view_WindowId_Handler")]
public abstract void OnFocusGained(Android.Views.WindowId? token);
[<Android.Runtime.Register("onFocusGained", "(Landroid/view/WindowId;)V", "GetOnFocusGained_Landroid_view_WindowId_Handler")>]
abstract member OnFocusGained : Android.Views.WindowId -> unit

参数

token
WindowId

用于令牌的 Android.Views.WindowId 值。

属性

注解

当其中一个受监视窗口获得输入焦点时调用。

Java文档android.view.WindowId.FocusObserver.onFocusGained(android.view.WindowId)。

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于