共用方式為


NotificationManager.AreNotificationsEnabled Method

Definition

Returns whether notifications from the calling package are enabled.

[Android.Runtime.Register("areNotificationsEnabled", "()Z", "GetAreNotificationsEnabledHandler", ApiSince=24)]
public virtual bool AreNotificationsEnabled ();
[<Android.Runtime.Register("areNotificationsEnabled", "()Z", "GetAreNotificationsEnabledHandler", ApiSince=24)>]
abstract member AreNotificationsEnabled : unit -> bool
override this.AreNotificationsEnabled : unit -> bool

Returns

Attributes

Remarks

Returns whether notifications from the calling package are enabled.

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

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