FragmentManager.InvalidateOptionsMenu 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.
Requests an options-menu invalidation.
[Android.Runtime.Register("invalidateOptionsMenu", "()V", "GetInvalidateOptionsMenuHandler")]
public virtual void InvalidateOptionsMenu();
[<Android.Runtime.Register("invalidateOptionsMenu", "()V", "GetInvalidateOptionsMenuHandler")>]
abstract member InvalidateOptionsMenu : unit -> unit
override this.InvalidateOptionsMenu : unit -> unit
- Attributes
Remarks
On API levels 21 and 22, the manager requests invalidation from its activity. On API level 23 and later, it invokes the host's OnInvalidateOptionsMenu() callback, whose default implementation does nothing. If the manager is not resumed or has no host, it marks an invalidation as pending for a later resumed state.
Android reference for android.app.FragmentManager.invalidateOptionsMenu.
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.