NotificationAndroidCrontab.hourly constructor
NotificationAndroidCrontab.hourly({})
Initializes a notification crontab schedule to be triggered hourly at a specific minute and second.
referenceDateTime
: The minute and second at which the notification should be scheduled each hour.
allowWhileIdle: Allows the notification to display even when the device is in low battery mode.
Implementation
NotificationAndroidCrontab.hourly(
{required DateTime referenceDateTime, super.allowWhileIdle})
: super(
timeZone: referenceDateTime.isUtc
? AwesomeNotifications.utcTimeZoneIdentifier
: AwesomeNotifications.localTimeZoneIdentifier,
repeats: false) {
_crontabExpression =
CronHelper().hourly(referenceDateTime: referenceDateTime);
}