DoNotDisturbPlugin class

The DoNotDisturbPlugin class is the main class of the plugin.

Constructors

DoNotDisturbPlugin()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

getDNDStatus() Future<InterruptionFilter>
Retrieves the current Do Not Disturb status.
isDndEnabled() Future<bool>
Returns true if DND is enabled. Returns false if the platform is iOS, otherwise returns the DND status.
isNotificationPolicyAccessGranted() Future<bool>
Checks if the Notification Policy Access is granted.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
openDndSettings() Future<void>
Opens the Do Not Disturb settings.
openNotificationPolicyAccessSettings() Future<void>
Opens the Notification Policy Access settings.
setInterruptionFilter(InterruptionFilter filter) Future<void>
Sets the Interruption Filter for Do Not Disturb.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited