Notification.CallStyle.SetDeclineButtonColorHint(Color) Method

Definition

Optional color to be used as a hint for the Decline or Hang Up action button's color.

[Android.Runtime.Register("setDeclineButtonColorHint", "(I)Landroid/app/Notification$CallStyle;", "GetSetDeclineButtonColorHint_IHandler", ApiSince=31)]
public virtual Android.App.Notification.CallStyle SetDeclineButtonColorHint(Android.Graphics.Color color);
[<Android.Runtime.Register("setDeclineButtonColorHint", "(I)Landroid/app/Notification$CallStyle;", "GetSetDeclineButtonColorHint_IHandler", ApiSince=31)>]
abstract member SetDeclineButtonColorHint : Android.Graphics.Color -> Android.App.Notification.CallStyle
override this.SetDeclineButtonColorHint : Android.Graphics.Color -> Android.App.Notification.CallStyle

Parameters

color
Color

int

Returns

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

Attributes

Remarks

Optional color to be used as a hint for the Decline or Hang Up action button's color. The system may change this color to ensure sufficient contrast with the background. The system may choose to disregard this hint if the notification is not colorized.

Android reference for android.app.Notification.CallStyle.setDeclineButtonColorHint.

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