Notification.Defaults 属性
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
此字段在 API 级别 26 中已弃用。
[Android.Runtime.GeneratedEnum]
[Android.Runtime.Register("defaults")]
public Android.App.NotificationDefaults Defaults { get; set; }
[<Android.Runtime.GeneratedEnum>]
[<Android.Runtime.Register("defaults")>]
member this.Defaults : Android.App.NotificationDefaults with get, set
属性值
- 特性
注解
此字段在 API 级别 26 中已弃用。 使用 NotificationChannel.getSound() 和 NotificationChannel.shouldShowLights() 和 NotificationChannel.shouldVibrate()。
指定应从默认值中提取哪些值。 若要设置,或所需的DEFAULT_SOUND、DEFAULT_VIBRATE、DEFAULT_LIGHTS。 对于所有默认值,请使用DEFAULT_ALL。
Android 参考。android.app.Notification.defaults
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。