Comparable<ReminderRequest>, Sequenceablepublic class ReminderRequestTimer extends ReminderRequest
ReminderRequest child class used for creating reminders for countdown timers.ReminderRequestCalendar,
ReminderRequestAlarmSequenceable.Producer<T>ACTION_BUTTON_TYPE_CLOSE, ACTION_BUTTON_TYPE_SNOOZE| 构造器 | 说明 |
|---|---|
ReminderRequestTimer(long countDownTimeInSeconds) |
A constructor used to create a
ReminderRequestTimer instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
ReminderRequest |
setTimeInterval(long timeIntervalInSeconds) |
Sets the snooze interval for this reminder, in seconds.
|
boolean |
unmarshalling(Parcel in) |
Unmarshals this
Sequenceable object from a Parcel. |
compareTo, equals, getContent, getExpiredContent, getNotificationId, getRingDuration, getSlotId, getSnoozeContent, getSnoozeTimes, getTimeInterval, getTitle, hashCode, setActionButton, setContent, setExpiredContent, setIntentAgent, setMaxScreenIntentAgent, setNotificationId, setRingDuration, setSlotId, setSnoozeContent, setSnoozeTimes, setTitle, toStringhasFileDescriptorpublic ReminderRequestTimer(long countDownTimeInSeconds)
ReminderRequestTimer instance. The countdown timer reminder
will be triggered after a specified duration.
Ensure that the input parameters meet the following requirements. Otherwise, the application may crash due to an illegal parameter exception.
triggerTimeInSeconds must be greater than 0. countDownTimeInSeconds - Indicates the duration after which this timer reminder will be triggered.public ReminderRequest setTimeInterval(long timeIntervalInSeconds)
ReminderRequest0.
ReminderRequestTimer
setTimeInterval 在类中 ReminderRequesttimeIntervalInSeconds - Indicates the snooze interval to set. If the value is less than or equal to 0,
the reminder will not be snoozed.ReminderRequest instance.public boolean marshalling(Parcel out)
SequenceableSequenceable object into a Parcel.marshalling 在接口中 Sequenceablemarshalling 在类中 ReminderRequestout - Indicates the Parcel object to which the Sequenceable
object will be marshaled..true if the marshalling is successful; returns false otherwise.public boolean unmarshalling(Parcel in)
SequenceableSequenceable object from a Parcel.unmarshalling 在接口中 Sequenceableunmarshalling 在类中 ReminderRequestin - Indicates the Parcel object into which the Sequenceable
object has been marshaled.true if the unmarshalling is successful; returns false otherwise.