Home
last modified time | relevance | path

Searched refs:trigger (Results 1 – 25 of 168) sorted by relevance

1234567

/expo/packages/expo-notifications/src/__tests__/
H A DNotifications-test.ts51 trigger, constant
74 trigger, constant
98 trigger, constant
121 trigger, constant
145 trigger, constant
170 trigger, constant
188 trigger, constant
204 trigger, constant
217 trigger: { constant
234 trigger: {
[all …]
/expo/packages/expo-notifications/src/
H A DscheduleNotificationAsync.ts83 parseTrigger(request.trigger)
177 trigger:
183 ): trigger is DateTriggerInput {
185 trigger instanceof Date ||
186 typeof trigger === 'number' ||
187 (typeof trigger === 'object' && 'date' in trigger)
192 if (trigger instanceof Date || typeof trigger === 'number') {
195 return { type: 'date', timestamp: toTimestamp(trigger.date), channelId: trigger.channelId };
207 ): trigger is DailyTriggerInput {
223 ): trigger is WeeklyTriggerInput {
[all …]
H A DgetNextTriggerDateAsync.ts31 trigger: SchedulableNotificationTriggerInput
37 return await NotificationScheduler.getNextTriggerDateAsync(parseTrigger(trigger));
H A DNotificationScheduler.types.ts10 trigger: NotificationTriggerInput
14 getNextTriggerDateAsync?: (trigger: NotificationTriggerInput) => Promise<number>;
/expo/packages/expo-notifications/build/
H A DscheduleNotificationAsync.js141 function isCalendarTrigger(trigger) { argument
145 function isDateTrigger(trigger) { argument
146 return (trigger instanceof Date ||
148 (typeof trigger === 'object' && 'date' in trigger));
150 function parseDateTrigger(trigger) { argument
151 if (trigger instanceof Date || typeof trigger === 'number') {
154 return { type: 'date', timestamp: toTimestamp(trigger.date), channelId: trigger.channelId };
163 if (typeof trigger !== 'object')
173 if (typeof trigger !== 'object')
183 if (typeof trigger !== 'object')
[all …]
H A DgetNextTriggerDateAsync.js.map1trigger date for given notification trigger input.\n * @param trigger The schedulable notification…
H A DgetNextTriggerDateAsync.js27 export default async function getNextTriggerDateAsync(trigger) { argument
31 return await NotificationScheduler.getNextTriggerDateAsync(parseTrigger(trigger));
H A DscheduleNotificationAsync.js.map1trigger once, in one minute from now\n * ```ts\n * import * as Notifications from 'expo-notificati…
H A DNotificationScheduler.types.d.ts5 …nc?: (identifier: string, notificationContent: NotificationContentInput, trigger: NotificationTrig…
8 getNextTriggerDateAsync?: (trigger: NotificationTriggerInput) => Promise<number>;
/expo/android/versioned-abis/expoview-abi48_0_0/src/main/java/abi48_0_0/expo/modules/notifications/notifications/
H A DNotificationSerializer.java157 if (trigger == null) { in toBundle()
161 if (trigger instanceof FirebaseNotificationTrigger) { in toBundle()
164 } else if (trigger instanceof TimeIntervalTrigger) { in toBundle()
168 } else if (trigger instanceof DateTrigger) { in toBundle()
172 } else if (trigger instanceof DailyTrigger) { in toBundle()
174 bundle.putInt("hour", ((DailyTrigger) trigger).getHour()); in toBundle()
176 } else if (trigger instanceof WeeklyTrigger) { in toBundle()
181 } else if (trigger instanceof YearlyTrigger) { in toBundle()
183 bundle.putInt("day", ((YearlyTrigger) trigger).getDay()); in toBundle()
190 bundle.putString("channelId", getChannelId(trigger)); in toBundle()
[all …]
/expo/packages/expo-notifications/android/src/main/java/expo/modules/notifications/notifications/
H A DNotificationSerializer.java157 if (trigger == null) { in toBundle()
161 if (trigger instanceof FirebaseNotificationTrigger) { in toBundle()
164 } else if (trigger instanceof TimeIntervalTrigger) { in toBundle()
168 } else if (trigger instanceof DateTrigger) { in toBundle()
172 } else if (trigger instanceof DailyTrigger) { in toBundle()
174 bundle.putInt("hour", ((DailyTrigger) trigger).getHour()); in toBundle()
176 } else if (trigger instanceof WeeklyTrigger) { in toBundle()
181 } else if (trigger instanceof YearlyTrigger) { in toBundle()
183 bundle.putInt("day", ((YearlyTrigger) trigger).getDay()); in toBundle()
190 bundle.putString("channelId", getChannelId(trigger)); in toBundle()
[all …]
/expo/android/versioned-abis/expoview-abi49_0_0/src/main/java/abi49_0_0/expo/modules/notifications/notifications/
H A DNotificationSerializer.java157 if (trigger == null) { in toBundle()
161 if (trigger instanceof FirebaseNotificationTrigger) { in toBundle()
164 } else if (trigger instanceof TimeIntervalTrigger) { in toBundle()
168 } else if (trigger instanceof DateTrigger) { in toBundle()
172 } else if (trigger instanceof DailyTrigger) { in toBundle()
174 bundle.putInt("hour", ((DailyTrigger) trigger).getHour()); in toBundle()
176 } else if (trigger instanceof WeeklyTrigger) { in toBundle()
181 } else if (trigger instanceof YearlyTrigger) { in toBundle()
183 bundle.putInt("day", ((YearlyTrigger) trigger).getDay()); in toBundle()
190 bundle.putString("channelId", getChannelId(trigger)); in toBundle()
[all …]
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/expo/modules/notifications/notifications/
H A DNotificationSerializer.java157 if (trigger == null) { in toBundle()
161 if (trigger instanceof FirebaseNotificationTrigger) { in toBundle()
164 } else if (trigger instanceof TimeIntervalTrigger) { in toBundle()
168 } else if (trigger instanceof DateTrigger) { in toBundle()
172 } else if (trigger instanceof DailyTrigger) { in toBundle()
174 bundle.putInt("hour", ((DailyTrigger) trigger).getHour()); in toBundle()
176 } else if (trigger instanceof WeeklyTrigger) { in toBundle()
181 } else if (trigger instanceof YearlyTrigger) { in toBundle()
183 bundle.putInt("day", ((YearlyTrigger) trigger).getDay()); in toBundle()
190 bundle.putString("channelId", getChannelId(trigger)); in toBundle()
[all …]
/expo/packages/expo-notifications/ios/EXNotifications/Notifications/
H A DEXNotificationSerializer.m41 serializedRequest[@"trigger"] = [self serializedNotificationTrigger:request];
73 BOOL isRemote = [request.trigger isKindOfClass:[UNPushNotificationTrigger class]];
117 UNNotificationTrigger *trigger = request.trigger;
119 serializedTrigger[@"class"] = NSStringFromClass(trigger.class);
120 if ([trigger isKindOfClass:[UNPushNotificationTrigger class]]) {
123 } else if ([trigger isKindOfClass:[UNCalendarNotificationTrigger class]]) {
125 serializedTrigger[@"repeats"] = @(trigger.repeats);
129 } else if ([trigger isKindOfClass:[UNLocationNotificationTrigger class]]) {
131 serializedTrigger[@"repeats"] = @(trigger.repeats);
135 } else if ([trigger isKindOfClass:[UNTimeIntervalNotificationTrigger class]]) {
[all …]
/expo/ios/versioned/sdk47/EXNotifications/EXNotifications/Notifications/
H A DABI47_0_0EXNotificationSerializer.m41 serializedRequest[@"trigger"] = [self serializedNotificationTrigger:request];
73 BOOL isRemote = [request.trigger isKindOfClass:[UNPushNotificationTrigger class]];
117 UNNotificationTrigger *trigger = request.trigger;
119 serializedTrigger[@"class"] = NSStringFromClass(trigger.class);
120 if ([trigger isKindOfClass:[UNPushNotificationTrigger class]]) {
123 } else if ([trigger isKindOfClass:[UNCalendarNotificationTrigger class]]) {
125 serializedTrigger[@"repeats"] = @(trigger.repeats);
129 } else if ([trigger isKindOfClass:[UNLocationNotificationTrigger class]]) {
131 serializedTrigger[@"repeats"] = @(trigger.repeats);
135 } else if ([trigger isKindOfClass:[UNTimeIntervalNotificationTrigger class]]) {
[all …]
/expo/ios/versioned/sdk48/EXNotifications/EXNotifications/Notifications/
H A DABI48_0_0EXNotificationSerializer.m41 serializedRequest[@"trigger"] = [self serializedNotificationTrigger:request];
73 BOOL isRemote = [request.trigger isKindOfClass:[UNPushNotificationTrigger class]];
117 UNNotificationTrigger *trigger = request.trigger;
119 serializedTrigger[@"class"] = NSStringFromClass(trigger.class);
120 if ([trigger isKindOfClass:[UNPushNotificationTrigger class]]) {
123 } else if ([trigger isKindOfClass:[UNCalendarNotificationTrigger class]]) {
125 serializedTrigger[@"repeats"] = @(trigger.repeats);
129 } else if ([trigger isKindOfClass:[UNLocationNotificationTrigger class]]) {
131 serializedTrigger[@"repeats"] = @(trigger.repeats);
135 } else if ([trigger isKindOfClass:[UNTimeIntervalNotificationTrigger class]]) {
[all …]
/expo/ios/versioned/sdk49/EXNotifications/EXNotifications/Notifications/
H A DABI49_0_0EXNotificationSerializer.m41 serializedRequest[@"trigger"] = [self serializedNotificationTrigger:request];
73 BOOL isRemote = [request.trigger isKindOfClass:[UNPushNotificationTrigger class]];
117 UNNotificationTrigger *trigger = request.trigger;
119 serializedTrigger[@"class"] = NSStringFromClass(trigger.class);
120 if ([trigger isKindOfClass:[UNPushNotificationTrigger class]]) {
123 } else if ([trigger isKindOfClass:[UNCalendarNotificationTrigger class]]) {
125 serializedTrigger[@"repeats"] = @(trigger.repeats);
129 } else if ([trigger isKindOfClass:[UNLocationNotificationTrigger class]]) {
131 serializedTrigger[@"repeats"] = @(trigger.repeats);
135 } else if ([trigger isKindOfClass:[UNTimeIntervalNotificationTrigger class]]) {
[all …]
/expo/packages/expo-notifications/ios/EXNotifications/Notifications/Scheduling/
H A DEXNotificationSchedulerModule.m70 …lf buildNotificationRequestWithIdentifier:identifier content:notificationSpec trigger:triggerSpec];
103 UNNotificationTrigger *trigger = [self triggerFromParams:triggerSpec];
104 if ([trigger isKindOfClass:[UNCalendarNotificationTrigger class]]) {
105 UNCalendarNotificationTrigger *calendarTrigger = (UNCalendarNotificationTrigger *)trigger;
109 } else if ([trigger isKindOfClass:[UNTimeIntervalNotificationTrigger class]]) {
110 …imeIntervalNotificationTrigger *timeIntervalTrigger = (UNTimeIntervalNotificationTrigger *)trigger;
115 …le to get next trigger date for triggers other than calendar-based. Provided trigger resulted in %…
119 … NSString *message = [NSString stringWithFormat:@"Failed to get next trigger date. %@", exception];
126 trigger:(NSDictionary *)triggerInput
145 // nil trigger is a valid trigger
[all …]
/expo/ios/versioned/sdk48/EXNotifications/EXNotifications/Notifications/Scheduling/
H A DABI48_0_0EXNotificationSchedulerModule.m70 …lf buildNotificationRequestWithIdentifier:identifier content:notificationSpec trigger:triggerSpec];
103 UNNotificationTrigger *trigger = [self triggerFromParams:triggerSpec];
104 if ([trigger isKindOfClass:[UNCalendarNotificationTrigger class]]) {
105 UNCalendarNotificationTrigger *calendarTrigger = (UNCalendarNotificationTrigger *)trigger;
109 } else if ([trigger isKindOfClass:[UNTimeIntervalNotificationTrigger class]]) {
110 …imeIntervalNotificationTrigger *timeIntervalTrigger = (UNTimeIntervalNotificationTrigger *)trigger;
115 …le to get next trigger date for triggers other than calendar-based. Provided trigger resulted in %…
119 … NSString *message = [NSString stringWithFormat:@"Failed to get next trigger date. %@", exception];
126 trigger:(NSDictionary *)triggerInput
145 // nil trigger is a valid trigger
[all …]
/expo/ios/versioned/sdk49/EXNotifications/EXNotifications/Notifications/Scheduling/
H A DABI49_0_0EXNotificationSchedulerModule.m70 …lf buildNotificationRequestWithIdentifier:identifier content:notificationSpec trigger:triggerSpec];
103 UNNotificationTrigger *trigger = [self triggerFromParams:triggerSpec];
104 if ([trigger isKindOfClass:[UNCalendarNotificationTrigger class]]) {
105 UNCalendarNotificationTrigger *calendarTrigger = (UNCalendarNotificationTrigger *)trigger;
109 } else if ([trigger isKindOfClass:[UNTimeIntervalNotificationTrigger class]]) {
110 …imeIntervalNotificationTrigger *timeIntervalTrigger = (UNTimeIntervalNotificationTrigger *)trigger;
115 …le to get next trigger date for triggers other than calendar-based. Provided trigger resulted in %…
119 … NSString *message = [NSString stringWithFormat:@"Failed to get next trigger date. %@", exception];
126 trigger:(NSDictionary *)triggerInput
145 // nil trigger is a valid trigger
[all …]
/expo/ios/versioned/sdk47/EXNotifications/EXNotifications/Notifications/Scheduling/
H A DABI47_0_0EXNotificationSchedulerModule.m70 …lf buildNotificationRequestWithIdentifier:identifier content:notificationSpec trigger:triggerSpec];
103 UNNotificationTrigger *trigger = [self triggerFromParams:triggerSpec];
104 if ([trigger isKindOfClass:[UNCalendarNotificationTrigger class]]) {
105 UNCalendarNotificationTrigger *calendarTrigger = (UNCalendarNotificationTrigger *)trigger;
109 } else if ([trigger isKindOfClass:[UNTimeIntervalNotificationTrigger class]]) {
110 …imeIntervalNotificationTrigger *timeIntervalTrigger = (UNTimeIntervalNotificationTrigger *)trigger;
115 …le to get next trigger date for triggers other than calendar-based. Provided trigger resulted in %…
119 … NSString *message = [NSString stringWithFormat:@"Failed to get next trigger date. %@", exception];
126 trigger:(NSDictionary *)triggerInput
145 // nil trigger is a valid trigger
[all …]
/expo/apps/test-suite/tests/
H A DNotifications.js928 trigger,
951 trigger,
1171 trigger,
1192 trigger,
1236 trigger,
1279 trigger,
1324 trigger: {
1347 trigger: {
1689 trigger: {
1748 trigger: {
[all …]
/expo/packages/expo-location/build/
H A DLocationSubscribers.js17 …entSubscription = LocationEventEmitter.addListener(this.eventName, (event) => this.trigger(event));
43 trigger(event) { method in Subscriber
/expo/packages/expo-location/src/
H A DLocationSubscribers.ts31 (event: EventObject) => this.trigger(event)
63 trigger(event: EventObject): void { method in Subscriber
/expo/android/expoview/src/main/java/host/exp/exponent/notifications/model/
H A DScopedNotificationRequest.kt17 trigger: NotificationTrigger?,
19 ) : super(identifier, content, trigger) {

1234567