AndroidUtils class

Helper providing direct access to Android-only features.

Constructors

AndroidUtils()

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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

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

Static Methods

cancelNotification(String tag) Future<void>
Removes the delivered notification with the provided tag.
cancelNotificationsContaining(String thread) Future<bool>
Removes the delivered notifications containing the provided thread.
canDrawOverlays() Future<bool>
Indicates whether this device has a permission to draw overlays.
createNotificationChannel({required String id, required String name, required String sound, String description = ''}) Future<void>
Creates a new NotificationChannel with the provided parameters.
openOverlaySettings() Future<void>
Opens overlay settings of this device.

Constants

platform → const MethodChannel
MethodChannel to communicate with Android via.