AlarmService constructor
AlarmService(
- AlarmListener listener
Creates an AlarmService instance that notifies the provided listener of alarm events.
The listener must remain in memory for the duration of the monitoring period. If the
AlarmService or AlarmListener is garbage collected, callbacks will not be triggered.
Parameters
listener: The AlarmListener that receives alarm event notifications.
Implementation
factory AlarmService(final AlarmListener listener) {
return AlarmService._create(listener);
}