AutomaticZenRule.Builder.SetConfigurationActivity(ComponentName) Method

Definition

Sets the configuration activity - an activity that handles NotificationManager.ACTION_AUTOMATIC_ZEN_RULE and shows more information about this rule and/or allows the user to configure it.

[Android.Runtime.Register("setConfigurationActivity", "(Landroid/content/ComponentName;)Landroid/app/AutomaticZenRule$Builder;", "", ApiSince=35)]
public Android.App.AutomaticZenRule.Builder SetConfigurationActivity(Android.Content.ComponentName? configurationActivity);
[<Android.Runtime.Register("setConfigurationActivity", "(Landroid/content/ComponentName;)Landroid/app/AutomaticZenRule$Builder;", "", ApiSince=35)>]
member this.SetConfigurationActivity : Android.Content.ComponentName -> Android.App.AutomaticZenRule.Builder

Parameters

configurationActivity
ComponentName

ComponentName: This value may be null.

Returns

This Android.App.AutomaticZenRule.Builder instance, allowing calls to be chained.

Attributes

Remarks

Sets the configuration activity - an activity that handles NotificationManager.ACTION_AUTOMATIC_ZEN_RULE and shows more information about this rule and/or allows the user to configure it. Although both are optional, at least one of setOwner(ComponentName) or setConfigurationActivity(ComponentName) must be provided. If both are set, setConfigurationActivity(ComponentName) supersedes setOwner(ComponentName), and the owner will not be used to determine whether the rule should be active. The system will validate that the provider ComponentName points to a valid and enabled Activity when calling NotificationManager.addAutomaticZenRule(AutomaticZenRule) or NotificationManager.updateAutomaticZenRule(String,AutomaticZenRule).

Android reference for android.app.AutomaticZenRule.Builder.setConfigurationActivity.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to