语言

Notification.Builder.SetColor(Int32) 方法

定义

设置 Notification.color。

[Android.Runtime.Register("setColor", "(I)Landroid/app/Notification$Builder;", "GetSetColor_IHandler")]
public virtual Android.App.Notification.Builder SetColor(int argb);
[<Android.Runtime.Register("setColor", "(I)Landroid/app/Notification$Builder;", "GetSetColor_IHandler")>]
abstract member SetColor : int -> Android.App.Notification.Builder
override this.SetColor : int -> Android.App.Notification.Builder

参数

argb
Int32

int:要使用的主题色

返回

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

特性

注解

设置 Notification.color。

Android 参考。android.app.Notification.Builder.setColor

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

适用于