NotificationDefaults 列舉
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
列舉數種類型所傳回的值,並當作 F:Android.App.Notification+Builder.SetDefaults 成員的參數。
此列舉支援其成員值的位元組合。
[System.Flags]
public enum NotificationDefaults
[<System.Flags>]
type NotificationDefaults =
- 繼承
-
NotificationDefaults
- 屬性
欄位
| 名稱 | 值 | Description |
|---|---|---|
| All | -1 | 使用所有預設值(如果適用的話)。 |
| Sound | 1 | 使用預設通知音效。 |
| Vibrate | 2 | 使用預設通知振動。 |
| Lights | 4 | 使用預設通知燈。 |
備註
此頁面的部分是根據 Android 開放原始碼專案所建立和共用的工作進行修改,並根據 Creative Commons 2.5 屬性授權中所述的詞彙使用。