Comparable<ReminderRequest>, Sequenceablepublic class ReminderRequestAlarm extends ReminderRequest
ReminderRequest child class used for creating reminders for alarm clocks.
You can use this class to publish alarm reminders at a specified time (accurate to minute) on a particular day or on particular days every week.
ReminderRequestTimer,
ReminderRequestCalendarSequenceable.Producer<T>ACTION_BUTTON_TYPE_CLOSE, ACTION_BUTTON_TYPE_SNOOZE| 构造器 | 说明 |
|---|---|
ReminderRequestAlarm(int hour,
int minute,
int[] daysOfWeek) |
A constructor used to create a
ReminderRequestAlarm instance. |
| 限定符和类型 | 方法 | 说明 |
|---|---|---|
boolean |
marshalling(Parcel out) |
Marshals this
Sequenceable object into a Parcel. |
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, setTimeInterval, setTitle, toStringhasFileDescriptorpublic ReminderRequestAlarm(int hour,
int minute,
int[] daysOfWeek)
ReminderRequestAlarm instance. The alarm reminder will be
triggered at a specified time.
Ensure that the input parameters meet the following requirements. Otherwise, the application may crash due to an illegal parameter exception.
hour must be greater than or equal to 0 and less than or equal to 23. minute must be greater than or equal to 0 and less than or equal to 59. daysOfWeek array cannot be greater than 7. hour - Indicates the hour for this alarm reminder. The value ranges from 0 to 23.minute - Indicates the minute for this alarm reminder. The value ranges from 0 to 59.daysOfWeek - Indicates the days in a week when this alarm reminder will be triggered. For example,
the value {1, 3} indicates that the reminder will be triggered every Monday and Wednesday.
By default, this reminder is not snoozed. You can call ReminderRequest.setTimeInterval(long) to set
the snooze interval.
If a snooze interval is set, this reminder will be snoozed for three times by default. You can
call ReminderRequest.setSnoozeTimes(int) to change the snooze times.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.