Share via


ActionBar.IOnMenuVisibilityListener.OnMenuVisibilityChanged(Boolean) Method

Definition

Called when an action bar menu is shown or hidden.

[Android.Runtime.Register("onMenuVisibilityChanged", "(Z)V", "GetOnMenuVisibilityChanged_ZHandler:Android.App.ActionBar/IOnMenuVisibilityListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public void OnMenuVisibilityChanged (bool isVisible);
[<Android.Runtime.Register("onMenuVisibilityChanged", "(Z)V", "GetOnMenuVisibilityChanged_ZHandler:Android.App.ActionBar/IOnMenuVisibilityListenerInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member OnMenuVisibilityChanged : bool -> unit

Parameters

isVisible
Boolean

True if an action bar menu is now visible, false if no action bar menus are visible.

Attributes

Remarks

Called when an action bar menu is shown or hidden. Applications may want to use this to tune auto-hiding behavior for the action bar or pause/resume video playback, gameplay, or other activity within the main content area.

Java documentation for android.app.ActionBar.OnMenuVisibilityListener.onMenuVisibilityChanged(boolean).

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