setSupportActionProvider
abstract fun setSupportActionProvider(@Nullable actionProvider: ActionProvider): SupportMenuItem(source)
Sets the ActionProvider responsible for creating an action view if the item is placed on the action bar. The provider also provides a default action invoked if the item is placed in the overflow menu.
Note: Setting an action provider overrides the action view set via setActionView or setActionView.
Return
This Item so additional setters can be called.
Parameters
actionProvider
The action provider.