# Class CalendarAlarm

java.lang.Object
com.codename1.calendar.CalendarAlarm

public class CalendarAlarm extends Object
An event/task alarm, either absolute or relative to its start/due time.

- ## Nested Class Summary

  Nested Classes
  Modifier and Type
  Class
  Description
  `static enum`
  `CalendarAlarm.Method`

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `CalendarAlarm()`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `Instant`
  `getAbsoluteTime()`
  `CalendarAlarm.Method`
  `getMethod()`
  `Duration`
  `getTimeBefore()`
  `CalendarAlarm`
  `setAbsoluteTime(Instant v)`
  `CalendarAlarm`
  `setMethod(CalendarAlarm.Method v)`
  `CalendarAlarm`
  `setTimeBefore(Duration v)`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### CalendarAlarm

    public CalendarAlarm()

- ## Method Details

  - ### getTimeBefore

    public Duration getTimeBefore()

  - ### setTimeBefore

    public CalendarAlarm setTimeBefore(Duration v)

  - ### getAbsoluteTime

    public Instant getAbsoluteTime()

  - ### setAbsoluteTime

    public CalendarAlarm setAbsoluteTime(Instant v)

  - ### getMethod

    public CalendarAlarm.Method getMethod()

  - ### setMethod

    public CalendarAlarm setMethod(CalendarAlarm.Method v)