语言

Notification.CallStyle.SetDeclineButtonColorHint(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

参数

color
Color

int

返回

此 Android.App.Notification.CallStyle 实例允许链接调用。

特性

注解

可选颜色,用作“拒绝”或“挂起”操作按钮颜色的提示。 系统可能会更改此颜色,以确保与背景形成足够的对比度。 如果未着色通知,系统可能会选择忽略此提示。

Android 参考。android.app.Notification.CallStyle.setDeclineButtonColorHint

本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。

适用于