Interface: TimestampTrigger

Defined in: packages/react-native/src/types/Trigger.ts:6

Interface for building a trigger with a timestamp.

View the Triggers documentation to learn more.

Properties

alarmManager?

optional alarmManager: boolean | TimestampTriggerAlarmManager

Defined in: packages/react-native/src/types/Trigger.ts:34

Choose to schedule your trigger notification with Android's AlarmManager API.

By default, trigger notifications are created with Android's WorkManager API.

Platform

android

repeatFrequency?

optional repeatFrequency: RepeatFrequency

Defined in: packages/react-native/src/types/Trigger.ts:25

The frequency at which the trigger repeats. If unset, the notification will only be displayed once.

For example: if set to RepeatFrequency.HOURLY, the notification will repeat every hour from the timestamp specified. if set to RepeatFrequency.DAILY, the notification will repeat every day from the timestamp specified. if set to RepeatFrequency.WEEKLY, the notification will repeat every week from the timestamp specified.

timestamp

timestamp: number

Defined in: packages/react-native/src/types/Trigger.ts:14

The timestamp when the notification should first be shown, in milliseconds since 1970.

type

type: TIMESTAMP

Defined in: packages/react-native/src/types/Trigger.ts:10

Constant enum value used to identify the trigger type.