NotificationInterval class
Constructors
-
NotificationInterval({required int? interval, String? timeZone, bool allowWhileIdle = false, bool repeats = false, bool preciseAlarm = false})
-
Notification Schedule based on calendar components. At least one date parameter is required.
interval Time interval between each notification (minimum of 60 sec case repeating)
allowWhileIdle Displays the notification, even when the device is low battery
repeats Defines if the notification should play only once or keeps repeating
preciseAlarm Requires maximum precision to schedule notifications at exact time, but may use more battery. Requires the explicit user consent for Android 12 and beyond.
timeZone time zone identifier as reference of this schedule date. (https://en.wikipedia.org/wiki/List_of_tz_database_time_zones)
Properties
-
allowWhileIdle
↔ bool
-
Displays the notification, even when the device is low battery
getter/setter pairinherited
-
createdDate
→ String?
-
Reference
no setterinherited
-
hashCode
→ int
-
The hash code for this object.
no setterinherited
-
interval
↔ int?
-
Field number for get and set indicating the amount of seconds between each repetition (greater than 0).
getter/setter pair
-
preciseAlarm
↔ bool
-
Displays the notification at precise date, even when the device is low battery. Requires explicity permission in Android 12 and beyond.
getter/setter pairinherited
-
repeats
↔ bool
-
Specify false to deliver the notification one time. Specify true to reschedule the notification request each time the notification is delivered.
getter/setter pairinherited
-
runtimeType
→ Type
-
A representation of the runtime type of the object.
no setterinherited
-
timeZone
↔ String
-
Full time zone identifier to schedule a notification, in english (ex: America/Sao_Paulo, America/New_York, Europe/Helsinki or GMT-07:00)
getter/setter pairinherited