Language

Notification.CarExtender.SetColor(Color) Method

Definition

Sets the accent color to use when Android Auto presents the notification.

[Android.Runtime.Register("setColor", "(I)Landroid/app/Notification$CarExtender;", "", ApiSince=23)]
public Android.App.Notification.CarExtender? SetColor(Android.Graphics.Color color);
[<Android.Runtime.Register("setColor", "(I)Landroid/app/Notification$CarExtender;", "", ApiSince=23)>]
member this.SetColor : Android.Graphics.Color -> Android.App.Notification.CarExtender

Parameters

color
Color

int

Returns

This Android.App.Notification.CarExtender instance, allowing calls to be chained.

Attributes

Remarks

Sets the accent color to use when Android Auto presents the notification. Android Auto uses the color set with Notification.Builder.setColor(int) to accent the displayed notification. However, not all colors are acceptable in an automotive setting. This method can be used to override the color provided in the notification in such a situation.

Android reference for android.app.Notification.CarExtender.setColor.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to