1 package expo.modules.notifications.notifications.interfaces;
2 
3 import java.io.Serializable;
4 import java.util.Date;
5 
6 import androidx.annotation.Nullable;
7 import expo.modules.notifications.service.delegates.SharedPreferencesNotificationsStore;
8 
9 /**
10  * A notification trigger that is serializable - this ensures {@link SharedPreferencesNotificationsStore}
11  * is capable of storing it in the device's memory.
12  */
13 public interface SchedulableNotificationTrigger extends NotificationTrigger, Serializable {
14   /**
15    * @return Next date at which the notification should be triggered. Returns `null`
16    * if the notification will not trigger in the future (it can be removed then).
17    */
18   @Nullable
nextTriggerDate()19   Date nextTriggerDate();
20 }
21