Most visited

Recently visited

Added in API level 11

View.OnSystemUiVisibilityChangeListener

public static interface View.OnSystemUiVisibilityChangeListener

android.view.View.OnSystemUiVisibilityChangeListener


在状态栏更改可见性时调用回调的接口定义。 这会报告系统UI状态的全局更改,而不是应用程序请求的内容。

也可以看看:

Summary

Public methods

abstract void onSystemUiVisibilityChange(int visibility)

由于致电 setSystemUiVisibility(int)而导致状态栏更改可见性时调用。

Public methods

onSystemUiVisibilityChange

Added in API level 11
void onSystemUiVisibilityChange (int visibility)

由于拨打 setSystemUiVisibility(int)而导致状态栏更改可见性时调用。

Parameters
visibility int: Bitwise-or of flags SYSTEM_UI_FLAG_LOW_PROFILE, SYSTEM_UI_FLAG_HIDE_NAVIGATION, and SYSTEM_UI_FLAG_FULLSCREEN. This tells you the global state of these UI visibility flags, not what your app is currently applying.

Hooray!