ActionBar.IOnMenuVisibilityListener.OnMenuVisibilityChanged(Boolean) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
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.