public
static
final
class
Notification.CarExtender
extends Object
implements
Notification.Extender
| java.lang.Object | |
| ↳ | android.app.Notification.CarExtender |
Helper class to add Android Auto extensions to notifications. To create a notification with car extensions:
Notification.Builder, setting any desired
properties.
Notification.CarExtender.
add and set methods of
Notification.CarExtender.
extend(Notification.Extender)
to apply the extensions to a notification.
Notification notification = new Notification.Builder(context)
...
.extend(new CarExtender()
.set*(...))
.build();
Car extensions can be accessed on an existing notification by using the
CarExtender(Notification) constructor, and then using the get methods
to access values.