共用方式為


ViewTreeObserver.IOnWindowVisibilityChangeListener.OnWindowVisibilityChanged 方法

定義

當檢視樹狀結構中的視窗可見度變更時要叫用的回呼方法。

[Android.Runtime.Register("onWindowVisibilityChanged", "(I)V", "GetOnWindowVisibilityChanged_IHandler:Android.Views.ViewTreeObserver/IOnWindowVisibilityChangeListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)]
public void OnWindowVisibilityChanged (Android.Views.ViewStates visibility);
[<Android.Runtime.Register("onWindowVisibilityChanged", "(I)V", "GetOnWindowVisibilityChanged_IHandler:Android.Views.ViewTreeObserver/IOnWindowVisibilityChangeListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=34)>]
abstract member OnWindowVisibilityChanged : Android.Views.ViewStates -> unit

參數

visibility
ViewStates

視窗的新可見度。

屬性

備註

當檢視樹狀結構中的視窗可見度變更時要叫用的回呼方法。

android.view.ViewTreeObserver.OnWindowVisibilityChangeListener.onWindowVisibilityChanged(int)Java 檔。

此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。

適用於