共用方式為


View.OnWindowSystemUiVisibilityChanged(SystemUiFlags) Method

Definition

Override to find out when the window's requested system UI visibility has changed, that is the value returned by #getWindowSystemUiVisibility().

[Android.Runtime.Register("onWindowSystemUiVisibilityChanged", "(I)V", "GetOnWindowSystemUiVisibilityChanged_IHandler")]
public virtual void OnWindowSystemUiVisibilityChanged (Android.Views.SystemUiFlags visible);
[<Android.Runtime.Register("onWindowSystemUiVisibilityChanged", "(I)V", "GetOnWindowSystemUiVisibilityChanged_IHandler")>]
abstract member OnWindowSystemUiVisibilityChanged : Android.Views.SystemUiFlags -> unit
override this.OnWindowSystemUiVisibilityChanged : Android.Views.SystemUiFlags -> unit

Parameters

visible
SystemUiFlags
Attributes

Remarks

Override to find out when the window's requested system UI visibility has changed, that is the value returned by #getWindowSystemUiVisibility(). This is different from the callbacks received through #setOnSystemUiVisibilityChangeListener(OnSystemUiVisibilityChangeListener) in that this is only telling you about the local request of the window, not the actual values applied by the system.

This member is deprecated. SystemUiVisibility flags are deprecated. Use WindowInsetsController instead.

Java documentation for android.view.View.onWindowSystemUiVisibilityChanged(int).

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.

Applies to