onAttach

open fun onAttach(@NonNull activity: FragmentActivity)

Called when menu is attached to the activity. This is called when creating the ActionMenu, and when the parent activity has moved to the foreground.

Parameters

activity

The parent activity of this ActionMenu.