public class ReminderTrigger extends Object
Specifies when an alarm will trigger.
Constructor and Description |
---|
ReminderTrigger(Date dateTime)
Initialize a new instance of
ReminderTrigger class. |
ReminderTrigger(ReminderDuration duration,
int related)
Initialize a new instance of
ReminderTrigger class. |
Modifier and Type | Method and Description |
---|---|
Date |
getDateTime()
A trigger set to an absolute date/time.
|
ReminderDuration |
getDuration()
Specifies a relative time for the trigger of the alarm.
|
int |
getRelated()
Specify the relationship of the alarm trigger with respect to the start or end of the event.
|
void |
setDateTime(Date value)
A trigger set to an absolute date/time.
|
void |
setDuration(ReminderDuration value)
Specifies a relative time for the trigger of the alarm.
|
void |
setRelated(int value)
Specify the relationship of the alarm trigger with respect to the start or end of the event.
|
public ReminderTrigger(Date dateTime)
Initialize a new instance of ReminderTrigger
class.
dateTime
- Absolute DateTime value.public ReminderTrigger(ReminderDuration duration, int related)
Initialize a new instance of ReminderTrigger
class.
duration
- To specify a relative time for the trigger of the alarm.related
- To specify the relationship of the alarm trigger with respect to the start or end of the event.public final ReminderDuration getDuration()
Specifies a relative time for the trigger of the alarm.
public final void setDuration(ReminderDuration value)
Specifies a relative time for the trigger of the alarm.
public final Date getDateTime()
A trigger set to an absolute date/time.
public final void setDateTime(Date value)
A trigger set to an absolute date/time.
public final int getRelated()
Specify the relationship of the alarm trigger with respect to the start or end of the event.
public final void setRelated(int value)
Specify the relationship of the alarm trigger with respect to the start or end of the event.