AlarmScheduler class
Alarm & Scheduling Module for precise and inexact alarms.
Constructors
- AlarmScheduler(MethodChannel _channel)
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
-
cancel(
String alarmId) → Future< void> - Cancels an existing alarm.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
requestExactAlarmPermission(
) → Future< bool> - Requests permission to schedule exact alarms (Android 12+).
-
scheduleExact(
{required String alarmId, required DateTime triggerTime, String? callbackMethod, Map< String, dynamic> ? extras}) → Future<void> - Schedules an exact alarm.
-
scheduleRepeating(
{required String alarmId, required DateTime triggerTime, required int intervalMillis, String? callbackMethod}) → Future< void> - Schedules a repeating alarm.
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited