AutomaticZenRule.ConfigurationActivity Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the ComponentName of the activity that shows configuration options
for this rule. -or- 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.
public Android.Content.ComponentName? ConfigurationActivity { [Android.Runtime.Register("getConfigurationActivity", "()Landroid/content/ComponentName;", "", ApiSince=29)] get; [Android.Runtime.Register("setConfigurationActivity", "(Landroid/content/ComponentName;)V", "", ApiSince=29)] set; }
[<get: Android.Runtime.Register("getConfigurationActivity", "()Landroid/content/ComponentName;", "", ApiSince=29)>]
[<set: Android.Runtime.Register("setConfigurationActivity", "(Landroid/content/ComponentName;)V", "", ApiSince=29)>]
member this.ConfigurationActivity : Android.Content.ComponentName with get, set
Property Value
This value may be null.
- Attributes
Remarks
Gets or sets the component name of the activity that handles ActionAutomaticZenRule and shows information about the rule or allows the user to configure it.
When a non-system app registers a rule, Android requires a valid, enabled owner service or configuration activity. On Android 10 through Android 17, if a registered rule has both, the configuration activity supersedes the owner service, which is not used to determine whether the rule is active.
Android reference for android.app.AutomaticZenRule.getConfigurationActivity.
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.