public interface MenuHost
ComponentActivity |
Base class for activities that enables composition of higher level components. |
Toolbar |
A standard toolbar for use within application content. |
AppCompatActivity |
Base class for activities that wish to use some of the newer platform features on older Android devices. |
BaseCarAppActivity |
Core logic for CarAppLibrary Activity interaction with a host. |
CarAppActivity |
The class representing a car app activity in the main display. |
FragmentActivity |
Base class for activities that want to use the support-based |
LauncherActivity |
This class handles providing the right launcher activity when running native applications and Car App Library applications. |
A class that allows you to host and keep track of MenuProviders that will supply android.view.MenuItems to the app bar.
Summary
Public methods
abstract void invalidateMenu()
Invalidates the android.view.Menu to ensure that what is displayed matches the current internal state of the menu. This should be called whenever the state of the menu is changed, such as items being removed or disabled based on some user event.