lightbulb_outline Please take our October 2018 developer survey. Start survey

RootMenu

public class RootMenu
extends Object

java.lang.Object
   ↳ android.car.app.menu.RootMenu


Stores the root id for the menu. The RootMenu is the main menu. Also allows passing hints through bundles. Hints allow the the recipient to alter its behavior based on the hints.

Summary

Public constructors

RootMenu(String id)

Create a root with no extra hints.

RootMenu(String id, Bundle extras)

Create a root with hints

Public methods

Bundle getBundle()

Get any hints

String getId()

Get the root id

Inherited methods

Public constructors

RootMenu

public RootMenu (String id)

Create a root with no extra hints.

Parameters
id String: Root id

RootMenu

public RootMenu (String id, 
                Bundle extras)

Create a root with hints

Parameters
id String: Root id

extras Bundle: Hints to pass along

Public methods

getBundle

public Bundle getBundle ()

Get any hints

Returns
Bundle A bundle if there are hints; null otherwise.

getId

public String getId ()

Get the root id

Returns
String The root id