SubscriptionCallbacks
public
abstract
class
SubscriptionCallbacks
extends Object
java.lang.Object | |
↳ | android.car.app.menu.SubscriptionCallbacks |
The callbacks to receive menu items updates.
Summary
Public constructors | |
---|---|
SubscriptionCallbacks()
|
Public methods | |
---|---|
abstract
void
|
onChildChanged(String parentId, Bundle item)
Called when the car menu items with the specified parent id are changed. |
abstract
void
|
onChildrenLoaded(String parentId, List<Bundle> items)
Called when the items with the specified parent id are loaded. |
abstract
void
|
onError(String id)
Called when there is an error loading the items with the specified id. |
Inherited methods | |
---|---|
Public constructors
SubscriptionCallbacks
public SubscriptionCallbacks ()
Public methods
onChildChanged
public abstract void onChildChanged (String parentId, Bundle item)
Called when the car menu items with the specified parent id are changed.
Parameters | |
---|---|
parentId |
String |
item |
Bundle : The new menu item. To retrieve the content of the item, use the keys
defined in CarMenuConstants .
|
onChildrenLoaded
public abstract void onChildrenLoaded (String parentId, List<Bundle> items)
Called when the items with the specified parent id are loaded.
Parameters | |
---|---|
parentId |
String |
items |
List : The list of menu items. To retrieve the content of the item, use the keys
defined in CarMenuConstants .
|
onError
public abstract void onError (String id)
Called when there is an error loading the items with the specified id.
Parameters | |
---|---|
id |
String |