AutomaticZenRule コンストラクター

定義

オーバーロード

名前 説明
AutomaticZenRule(Parcel)

自動 zen ルールを作成します。

AutomaticZenRule(String, ComponentName, Uri, Int32, Boolean)

このコンストラクターは非推奨です。

AutomaticZenRule(String, ComponentName, ComponentName, Uri, ZenPolicy, Int32, Boolean)

自動 zen ルールを作成します。

AutomaticZenRule(Parcel)

自動 zen ルールを作成します。

[Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "", ApiSince=24)]
public AutomaticZenRule(Android.OS.Parcel? source);
[<Android.Runtime.Register(".ctor", "(Landroid/os/Parcel;)V", "", ApiSince=24)>]
new Android.App.AutomaticZenRule : Android.OS.Parcel -> Android.App.AutomaticZenRule

パラメーター

source
Parcel

Parcel

属性

注釈

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

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

適用対象

AutomaticZenRule(String, ComponentName, Uri, Int32, Boolean)

このコンストラクターは非推奨です。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/content/ComponentName;Landroid/net/Uri;IZ)V", "", ApiSince=24)]
public AutomaticZenRule(string? name, Android.Content.ComponentName? owner, Android.Net.Uri? conditionId, int interruptionFilter, bool enabled);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/content/ComponentName;Landroid/net/Uri;IZ)V", "", ApiSince=24)>]
new Android.App.AutomaticZenRule : string * Android.Content.ComponentName * Android.Net.Uri * int * bool -> Android.App.AutomaticZenRule

パラメーター

name
String

文字列: ルールの名前。

owner
ComponentName

ComponentName: このルールを所有する条件プロバイダー サービス。

conditionId
Uri

Uri

interruptionFilter
Int32

int: 割り込みフィルターは、このルールがアクティブな間にユーザーを割り込む (音や振動など) 通知を定義します。

enabled
Boolean

boolean: ルールが有効かどうか。

属性

注釈

このコンストラクターは非推奨です。 AutomaticZenRule.Builder を使用して AutomaticZenRule を構築します。

自動 zen ルールを作成します。

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

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

適用対象

AutomaticZenRule(String, ComponentName, ComponentName, Uri, ZenPolicy, Int32, Boolean)

自動 zen ルールを作成します。

[Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/content/ComponentName;Landroid/content/ComponentName;Landroid/net/Uri;Landroid/service/notification/ZenPolicy;IZ)V", "", ApiSince=29)]
public AutomaticZenRule(string name, Android.Content.ComponentName? owner, Android.Content.ComponentName? configurationActivity, Android.Net.Uri conditionId, Android.Service.Notification.ZenPolicy? policy, int interruptionFilter, bool enabled);
[<Android.Runtime.Register(".ctor", "(Ljava/lang/String;Landroid/content/ComponentName;Landroid/content/ComponentName;Landroid/net/Uri;Landroid/service/notification/ZenPolicy;IZ)V", "", ApiSince=29)>]
new Android.App.AutomaticZenRule : string * Android.Content.ComponentName * Android.Content.ComponentName * Android.Net.Uri * Android.Service.Notification.ZenPolicy * int * bool -> Android.App.AutomaticZenRule

パラメーター

name
String

文字列: ルールの名前。 この値は null にすることはできません。

owner
ComponentName

ComponentName: このルールを所有する条件プロバイダー サービス。 ConditionProviderService の代わりに NotificationManager.setAutomaticZenRuleState(String,Condition) を使用している場合、これは null になる可能性があります。

configurationActivity
ComponentName

ComponentName: このルールに関する詳細情報をユーザーに表示したり、構成を許可したりするNotificationManager.ACTION_AUTOMATIC_ZEN_RULEを処理するアクティビティ。 これは、ConditionProviderService を使用していない場合に必要です。 その場合は、マニフェストで指定された情報がオーバーライドされます。 この値は null である可能性があります。

conditionId
Uri

Uri: アプリが特定の中断フィルターを適用する原因となる状態の表現。 この値は null にすることはできません。

policy
ZenPolicy

ZenPolicy: ポリシーは、このルールがアクティブな間にユーザーを中断することを許可する通知を定義します。 これにより、このルールがアクション (Condition.STATE_TRUE) である間にグローバル ポリシーがオーバーライドされます。 この値は null である可能性があります。

interruptionFilter
Int32

int: 割り込みフィルターは、このルールがアクティブな間にユーザーを割り込む (音や振動など) 通知を定義します。

enabled
Boolean

boolean: ルールが有効かどうか。

属性

注釈

自動 zen ルールを作成します。 注: AutomaticZenRule を構築するには、AutomaticZenRule.Builder を使用します。

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

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

適用対象