NotificationChannel.Importance プロパティ
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
ユーザー指定の重要度 e を返します。 または、この通知チャネルの中断レベルを設定します。
public Android.App.NotificationImportance Importance { [Android.Runtime.Register("getImportance", "()I", "", ApiSince=26)] get; [Android.Runtime.Register("setImportance", "(I)V", "", ApiSince=26)] set; }
[<get: Android.Runtime.Register("getImportance", "()I", "", ApiSince=26)>]
[<set: Android.Runtime.Register("setImportance", "(I)V", "", ApiSince=26)>]
member this.Importance : Android.App.NotificationImportance with get, set
プロパティ値
値は次のいずれかです: NotificationManager.IMPORTANCE_UNSPECIFIED NotificationManager.IMPORTANCE_NONE NotificationManager.IMPORTANCE_MIN NotificationManager.IMPORTANCE_LOW NotificationManager.IMPORTANCE_DEFAULT NotificationManager.IMPORTANCE_HIGH
- 属性
注釈
このチャネルに投稿された通知のNotificationManager.IMPORTANCE_LOWなど、ユーザーが指定した重要度を返します。 注: この値は > NotificationManager.IMPORTANCE_NONE可能性がありますが、親 NotificationChannelGroup またはアプリがブロックされている場合、このチャネルに投稿された通知はユーザーに表示されません。 NotificationChannelGroup.isBlocked() と NotificationManager.areNotificationsEnabled() を参照してください。
android.app.NotificationChannel.getImportanceの Android リファレンス。
このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。