共用方式為


FragmentManager.InvalidateOptionsMenu Method

Definition

Invalidate the attached activity's options menu as necessary.

[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

Invalidate the attached activity's options menu as necessary. This may end up being deferred until we move to the resumed state.

Java documentation 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.

Applies to