Język

Notification.CallStyle.SetAnswerButtonColorHint(Color) Method

Definition

Optional color to be used as a hint for the Answer action button's color.

[Android.Runtime.Register("setAnswerButtonColorHint", "(I)Landroid/app/Notification$CallStyle;", "GetSetAnswerButtonColorHint_IHandler", ApiSince=31)]
public virtual Android.App.Notification.CallStyle SetAnswerButtonColorHint(Android.Graphics.Color color);
[<Android.Runtime.Register("setAnswerButtonColorHint", "(I)Landroid/app/Notification$CallStyle;", "GetSetAnswerButtonColorHint_IHandler", ApiSince=31)>]
abstract member SetAnswerButtonColorHint : Android.Graphics.Color -> Android.App.Notification.CallStyle
override this.SetAnswerButtonColorHint : 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 Answer 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.setAnswerButtonColorHint.

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