MBAutomationFlutterPlugin class
Interface to native code, used to present and schedule local notifications.
Constructors
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
-
cancelLocalNotification(
{required String id}) → Future< void> - Cancels the local notification with the specified id. @param id The id of the notification that will be cancelled
-
initializeMethodCall(
) → dynamic - Initializes method calls from native to dart.
-
showLocalNotification(
{required String id, required DateTime date, required String title, required String body, required int? badge, required String? launchImage, required String? sound, required String? media, required String? mediaType}) → Future< bool> - Presents a local notification. @param id The id of the notification. @param date The date when the notification will be presented. @param title The title of the notification. @param body The body of the notification. @param badge The badge of the notification. @param launchImage The launch image for the notification. @param sound A custom sound for the notification. @param media The path of a media that will be showed with the notification. @param mediaType The media type.