System.Notification.TNotification.RepeatInterval
Delphi
RepeatInterval: TRepeatInterval;
C++
TRepeatInterval RepeatInterval;
Propriétés
| Type | Visibilité | Source | Unité | Parent |
|---|---|---|---|---|
| field | public | System.Notification.pas System.Notification.hpp |
System.Notification | TNotification |
Description
L'intervalle d'une notification répétée.
Généralement, vous pouvez définir un intervalle de répétition lorsque vous planifiez une notification. La valeur par défaut est None.
Les valeurs possibles sont :
None: cette valeur spécifie une notification non répétéeSecond: une seconde.Minute: une minute.Hour: une heure.Day: un jour.Week: une semaine.Weekday: un jour de la semaine.Month: un mois.Quarter: un trimestre. Un trimestre est égal à 3 mois.Year: une année.Era: une unité calendaire spéciale pour les cas spécifiques. Par exemple, une valeur Era différente peut permettre de différencierBCetACdans le calendrier grégorien sur iOS. Voir iOS Developer Library - Historical Dates (EN).
Si vous souhaitez utiliser un autre intervalle personnalisé, vous pouvez combiner plusieurs notifications pour y parvenir. Par exemple, si vous voulez afficher une notification toutes les 30 minutes, vous devrez créer deux notifications avec un intervalle de répétition d'une heure (Hour) et définir le paramètre FireDate de la seconde notification sur 30 minutes après la première notification.
Voir davantage d'informations sur la répétition des notifications.
Voir aussi
- Utilisation de notifications
- System.Notification.TNotification.AlertAction
- System.Notification.TNotification.AlertBody
- System.Notification.TNotification.EnableSound
- System.Notification.TNotification.FireDate
- System.Notification.TNotification.HasAction
- System.Notification.TNotification.Name
- System.Notification.TNotification.Number
- System.Notification.TNotification.SoundName
- System.Notification.TNotification.Title