Partager via


Fragment.OnDestroyOptionsMenu Method

Definition

Called when this fragment's option menu items are no longer being included in the overall options menu.

[Android.Runtime.Register("onDestroyOptionsMenu", "()V", "GetOnDestroyOptionsMenuHandler")]
public virtual void OnDestroyOptionsMenu ();
[<Android.Runtime.Register("onDestroyOptionsMenu", "()V", "GetOnDestroyOptionsMenuHandler")>]
abstract member OnDestroyOptionsMenu : unit -> unit
override this.OnDestroyOptionsMenu : unit -> unit
Attributes

Remarks

Called when this fragment's option menu items are no longer being included in the overall options menu. Receiving this call means that the menu needed to be rebuilt, but this fragment's items were not included in the newly built menu (its #onCreateOptionsMenu(Menu, MenuInflater) was not called).

Java documentation for android.app.Fragment.onDestroyOptionsMenu().

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