語言

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)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於