NotificationManager.SetAutomaticZenRuleState(String, Condition) メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
の状態が変更されたことを通知マネージャーに AutomaticZenRule
通知します。
[Android.Runtime.Register("setAutomaticZenRuleState", "(Ljava/lang/String;Landroid/service/notification/Condition;)V", "GetSetAutomaticZenRuleState_Ljava_lang_String_Landroid_service_notification_Condition_Handler", ApiSince=29)]
public virtual void SetAutomaticZenRuleState (string id, Android.Service.Notification.Condition condition);
[<Android.Runtime.Register("setAutomaticZenRuleState", "(Ljava/lang/String;Landroid/service/notification/Condition;)V", "GetSetAutomaticZenRuleState_Ljava_lang_String_Landroid_service_notification_Condition_Handler", ApiSince=29)>]
abstract member SetAutomaticZenRuleState : string * Android.Service.Notification.Condition -> unit
override this.SetAutomaticZenRuleState : string * Android.Service.Notification.Condition -> unit
パラメーター
- id
- String
状態を変更する必要があるルールの ID
- condition
- Condition
このルールの新しい状態
- 属性
注釈
の状態が変更されたことを通知マネージャーに AutomaticZenRule
通知します。 システムを応答不可モードにするか、応答不可モードを終了するように要求するには、このメソッドを使用します。 呼び出し元アプリは、指定された android.app.AutomaticZenRule
を所有している必要があります。
このメソッドは、 または android.service.notification.ConditionProviderService#notifyCondition(Condition)
と組み合わせて 使用できます。
このページの一部は、によって作成および共有された作業に基づく変更であり、に記載されている条件に従って使用されます。