Share via


NotificationManager.AreNotificationsPaused Method

Definition

Returns whether notifications from this package are temporarily hidden.

[Android.Runtime.Register("areNotificationsPaused", "()Z", "GetAreNotificationsPausedHandler", ApiSince=29)]
public virtual bool AreNotificationsPaused ();
[<Android.Runtime.Register("areNotificationsPaused", "()Z", "GetAreNotificationsPausedHandler", ApiSince=29)>]
abstract member AreNotificationsPaused : unit -> bool
override this.AreNotificationsPaused : unit -> bool

Returns

Attributes

Remarks

Returns whether notifications from this package are temporarily hidden. This could be done because the package was marked as distracting to the user via PackageManager#setDistractingPackageRestrictions(String[], int) or because the package is PackageManager#setPackagesSuspended(String[], boolean, PersistableBundle, PersistableBundle, SuspendDialogInfo) suspended.

Java documentation for android.app.NotificationManager.areNotificationsPaused().

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