AndroidAlarmManager class

A Flutter plugin for registering Dart callbacks with the Android AlarmManager service.

See the example/ directory in this package for sample usage.

Constructors

AndroidAlarmManager()

Properties

hashCode → int
The hash code for this object.
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

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

Operators

operator ==(dynamic other) → bool
The equality operator.
inherited

Static Methods

cancel(int id) → Future<bool>
Cancels a timer. [...]
initialize() → Future<bool>
Starts the AndroidAlarmManager service. This must be called before setting any alarms. [...]
oneShot(Duration delay, int id, dynamic callback(), { bool exact: false, bool wakeup: false }) → Future<bool>
Schedules a one-shot timer to run callback after time delay. [...]
periodic(Duration duration, int id, dynamic callback(), { bool exact: false, bool wakeup: false }) → Future<bool>
Schedules a repeating timer to run callback with period duration. [...]