Udostępnij za pośrednictwem


Settings.ActionNotificationPolicyAccessSettings Field

Definition

Activity Action: Show Do Not Disturb access settings.

[Android.Runtime.Register("ACTION_NOTIFICATION_POLICY_ACCESS_SETTINGS", ApiSince=23)]
public const string ActionNotificationPolicyAccessSettings;
[<Android.Runtime.Register("ACTION_NOTIFICATION_POLICY_ACCESS_SETTINGS", ApiSince=23)>]
val mutable ActionNotificationPolicyAccessSettings : string

Field Value

Attributes

Remarks

Activity Action: Show Do Not Disturb access settings.

Users can grant and deny access to Do Not Disturb configuration from here. Managed profiles cannot grant Do Not Disturb access. See android.app.NotificationManager#isNotificationPolicyAccessGranted() for more details.

Input: Nothing.

Output: Nothing.

<p class="note"> In some cases, a matching Activity may not exist, so ensure you safeguard against this.

Java documentation for android.provider.Settings.ACTION_NOTIFICATION_POLICY_ACCESS_SETTINGS.

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