语言

Notification.Icon 属性

定义

注意

deprecated

此字段在 API 级别 23 中已弃用。

[Android.Runtime.Register("icon")]
[System.Obsolete("deprecated")]
public int Icon { get; set; }
[<Android.Runtime.Register("icon")>]
[<System.Obsolete("deprecated")>]
member this.Icon : int with get, set

属性值

特性

注解

此字段在 API 级别 23 中已弃用。 请改用 Builder.setSmallIcon(Icon)。

要用作状态栏中图标的可绘制对象的资源 ID。

Android 参考。android.app.Notification.icon

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

适用于