NotificationManager.Policy コンストラクター

定義

オーバーロード

名前 説明
NotificationManager.Policy(IntPtr, JniHandleOwnership)

既存の Java Native Interface オブジェクトのマネージド表現を初期化します。

NotificationManager.Policy(NotificationPriorityCategory, NotificationPrioritySenders, NotificationPrioritySenders)

応答不可の優先度モード動作のポリシーを構築します。

NotificationManager.Policy(NotificationPriorityCategory, NotificationPrioritySenders, NotificationPrioritySenders, Int32)

応答不可の優先度モード動作のポリシーを構築します。

NotificationManager.Policy(NotificationPriorityCategory, NotificationPrioritySenders, NotificationPrioritySenders, Int32, Int32)

応答不可の優先度モード動作のポリシーを構築します。

NotificationManager.Policy(IntPtr, JniHandleOwnership)

既存の Java Native Interface オブジェクトのマネージド表現を初期化します。

protected Policy(IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);
new Android.App.NotificationManager.Policy : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.NotificationManager.Policy

パラメーター

javaReference
IntPtr

nativeint

Java ネイティブ インターフェイス オブジェクト参照。

transfer
JniHandleOwnership

Java Native Interface オブジェクト参照に適用する所有権の転送。

注釈

このコンストラクターは、既存のJava オブジェクトのマネージド ピアを作成するときに、Android バインド ランタイムの.NETによって呼び出されます。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

NotificationManager.Policy(NotificationPriorityCategory, NotificationPrioritySenders, NotificationPrioritySenders)

応答不可の優先度モード動作のポリシーを構築します。

[Android.Runtime.Register(".ctor", "(III)V", "", ApiSince=23)]
public Policy(Android.App.NotificationPriorityCategory priorityCategories, Android.App.NotificationPrioritySenders priorityCallSenders, Android.App.NotificationPrioritySenders priorityMessageSenders);
[<Android.Runtime.Register(".ctor", "(III)V", "", ApiSince=23)>]
new Android.App.NotificationManager.Policy : Android.App.NotificationPriorityCategory * Android.App.NotificationPrioritySenders * Android.App.NotificationPrioritySenders -> Android.App.NotificationManager.Policy

パラメーター

priorityCategories
NotificationPriorityCategory

int: DND をバイパスできる通知のカテゴリのビットマスク。

priorityCallSenders
NotificationPrioritySenders

int: DND をバイパスできる呼び出し元。

priorityMessageSenders
NotificationPrioritySenders

int: DND をバイパスできるメッセージ送信者。

属性

注釈

応答不可の優先度モード動作のポリシーを構築します。 Build.VERSION_CODES以下の API レベルを対象とするアプリ。P は、ユーザー指定の値を変更して、Policy.PRIORITY_CATEGORY_ALARMS、Policy.PRIORITY_CATEGORY_SYSTEM、Policy.PRIORITY_CATEGORY_MEDIAが dnd をバイパスできないようにすることはできません。

android.app.NotificationManager.Policy.Policyの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

NotificationManager.Policy(NotificationPriorityCategory, NotificationPrioritySenders, NotificationPrioritySenders, Int32)

応答不可の優先度モード動作のポリシーを構築します。

[Android.Runtime.Register(".ctor", "(IIII)V", "", ApiSince=24)]
public Policy(Android.App.NotificationPriorityCategory priorityCategories, Android.App.NotificationPrioritySenders priorityCallSenders, Android.App.NotificationPrioritySenders priorityMessageSenders, int suppressedVisualEffects);
[<Android.Runtime.Register(".ctor", "(IIII)V", "", ApiSince=24)>]
new Android.App.NotificationManager.Policy : Android.App.NotificationPriorityCategory * Android.App.NotificationPrioritySenders * Android.App.NotificationPrioritySenders * int -> Android.App.NotificationManager.Policy

パラメーター

priorityCategories
NotificationPriorityCategory

int: DND をバイパスできる通知のカテゴリのビットマスク。

priorityCallSenders
NotificationPrioritySenders

int: DND をバイパスできる呼び出し元。

priorityMessageSenders
NotificationPrioritySenders

int: DND をバイパスできるメッセージ送信者。

suppressedVisualEffects
Int32

int: DND でフィルター処理された通知からどの視覚的な中断を抑制する必要があります。

属性

注釈

応答不可の優先度モード動作のポリシーを構築します。 Build.VERSION_CODES以下の API レベルを対象とするアプリ。R は、ユーザー指定の値を変更して、Policy.PRIORITY_CATEGORY_CONVERSATIONSを許可または禁止することはできません。dnd をバイパスすることはできません。 さらに、API レベルをターゲットとするアプリはBuild.VERSION_CODES。P は、抑制された視覚効果フィールドのSUPPRESSED_EFFECT_SCREEN_ONビットとSUPPRESSED_EFFECT_SCREEN_OFF ビットのみを変更できます。 その他の抑制された効果はすべて無視され、画面のオンとスクリーンオフの値から再構成されます。 Build.VERSION_CODESを対象とするアプリ。P 以上では、抑制された視覚効果を設定できます。 ただし、抑制された効果 > SUPPRESSED_EFFECT_SCREEN_ONが設定されている場合、SUPPRESSED_EFFECT_SCREEN_ONとSUPPRESSED_EFFECT_SCREEN_OFFは無視され、より具体的な抑制された視覚効果ビットから再構成されます。 アプリは、非推奨のSUPPRESSED_EFFECT_SCREEN_ONやSUPPRESSED_EFFECT_SCREEN_OFF効果ではなく、特定の効果をターゲットに移行する必要があります。

android.app.NotificationManager.Policy.Policyの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

NotificationManager.Policy(NotificationPriorityCategory, NotificationPrioritySenders, NotificationPrioritySenders, Int32, Int32)

応答不可の優先度モード動作のポリシーを構築します。

[Android.Runtime.Register(".ctor", "(IIIII)V", "", ApiSince=30)]
public Policy(Android.App.NotificationPriorityCategory priorityCategories, Android.App.NotificationPrioritySenders priorityCallSenders, Android.App.NotificationPrioritySenders priorityMessageSenders, int suppressedVisualEffects, int priorityConversationSenders);
[<Android.Runtime.Register(".ctor", "(IIIII)V", "", ApiSince=30)>]
new Android.App.NotificationManager.Policy : Android.App.NotificationPriorityCategory * Android.App.NotificationPrioritySenders * Android.App.NotificationPrioritySenders * int * int -> Android.App.NotificationManager.Policy

パラメーター

priorityCategories
NotificationPriorityCategory

int: DND をバイパスできる通知のカテゴリのビットマスク。

priorityCallSenders
NotificationPrioritySenders

int: DND をバイパスできる呼び出し元。 値は次のいずれかです:PRIORITY_SENDERS_ANY PRIORITY_SENDERS_CONTACTS PRIORITY_SENDERS_STARRED

priorityMessageSenders
NotificationPrioritySenders

int: DND をバイパスできるメッセージ送信者。 値は次のいずれかです:PRIORITY_SENDERS_ANY PRIORITY_SENDERS_CONTACTS PRIORITY_SENDERS_STARRED

suppressedVisualEffects
Int32

int: DND でフィルター処理された通知からどの視覚的な中断を抑制する必要があります。

priorityConversationSenders
Int32

int: 値は次のいずれかです: CONVERSATION_SENDERS_ANYONE CONVERSATION_SENDERS_IMPORTANT CONVERSATION_SENDERS_NONE

属性

注釈

応答不可の優先度モード動作のポリシーを構築します。 Build.VERSION_CODES以下の API レベルを対象とするアプリ。P は、ユーザー指定の値を変更して、dnd をバイパスするPolicy.PRIORITY_CATEGORY_CONVERSATIONSを許可または禁止することはできません。 それらを変更する必要がある場合は、グローバル設定を変更する代わりに、AutomaticZenRule に関連付けられている ZenPolicy を使用します。 Build.VERSION_CODES以下の API レベルを対象とするアプリ。P は、ユーザー指定の値を変更して、Policy.PRIORITY_CATEGORY_ALARMS、Policy.PRIORITY_CATEGORY_SYSTEM、Policy.PRIORITY_CATEGORY_MEDIAが dnd をバイパスできないようにすることはできません。 さらに、API レベルをターゲットとするアプリはBuild.VERSION_CODES。P は、抑制された視覚効果フィールドのSUPPRESSED_EFFECT_SCREEN_ONビットとSUPPRESSED_EFFECT_SCREEN_OFF ビットのみを変更できます。 その他の抑制された効果はすべて無視され、画面のオンとスクリーンオフの値から再構成されます。 Build.VERSION_CODESを対象とするアプリ。P 以上では、抑制された視覚効果を設定できます。 ただし、抑制された効果 > SUPPRESSED_EFFECT_SCREEN_ONが設定されている場合、SUPPRESSED_EFFECT_SCREEN_ONとSUPPRESSED_EFFECT_SCREEN_OFFは無視され、より具体的な抑制された視覚効果ビットから再構成されます。 アプリは、非推奨のSUPPRESSED_EFFECT_SCREEN_ONやSUPPRESSED_EFFECT_SCREEN_OFF効果ではなく、特定の効果をターゲットに移行する必要があります。

android.app.NotificationManager.Policy.Policyの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象