語言

Notification.Defaults 屬性

定義

此欄位在 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.應該振動()。

指定應從預設值中取出哪些值。 要設定,或者從DEFAULT_SOUND、DEFAULT_VIBRATE、DEFAULT_LIGHTS中設定想要的。 所有預設值都用DEFAULT_ALL。

Android 參考資料。android.app.Notification.defaults

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於