NotificationDefaults 枚举
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
枚举多个类型返回的值,并将其作为 F:Android.App.Notification+Builder.SetDefaults 成员的参数。
此枚举支持其成员值的按位组合。
[System.Flags]
public enum NotificationDefaults
[<System.Flags>]
type NotificationDefaults =
- 继承
-
NotificationDefaults
- 属性
字段
| 名称 | 值 | 说明 |
|---|---|---|
| All | -1 | 使用所有默认值(如果适用)。 |
| Sound | 1 | 使用默认通知声音。 |
| Vibrate | 2 | 使用默认通知振动。 |
| Lights | 4 | 使用默认通知灯。 |
注解
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。