pub type UIContextMenuActionProvider = *mut DynBlock<dyn Fn(NonNull<NSArray<UIMenuElement>>) -> *mut UIMenu>;
Available on crate features
UIContextMenuConfiguration
and UIMenu
and UIMenuElement
and block2
only.Expand description
Return a UIAction-based UIMenu describing the desired action hierarchy.
Parameter suggestedActions
: An array of suggested actions gathered from the UIResponder chain. You may choose to include
some of these actions in the hierarchy returned from this block to display them in the resulting menu.
See also Appleās documentation