postEvent
public EventToken postEvent(CalendarCallback process,
CalendarCallback cancel,
PointInTime eventTime,
int eventPriority)
Creates a new entry in the calendar.
- Specified by:
postEvent
in class Calendar
- Parameters:
process
- Function to call when the event is processed. May be null.
cancel
- Function to call when the event is cancelled. May be null.
eventTime
- Time at which to call the onExecute
function. Must
be later or equal than the current system time returned by
Calendar.getSystemTime()
.
eventPriority
- Key used for sorting to break ties for two entries with the same
eventTime
.
- Returns:
- An object which allows event-specific interaction with the
calendar.