AlarmManager

Class of android.app · AlarmManager.java · Android's reference

public class AlarmManager

Alarms: run as delayed work of the process, which lives as long as the app is open.

Nested types

Fields

public static final int RTC_WAKEUP = 0 source
public static final int RTC = 1 source
public static final int ELAPSED_REALTIME_WAKEUP = 2 source
public static final int ELAPSED_REALTIME = 3 source
public static final long INTERVAL_FIFTEEN_MINUTES = 900000 source
public static final long INTERVAL_HALF_HOUR = 1800000 source
public static final long INTERVAL_HOUR = 3600000 source
public static final long INTERVAL_DAY = 86400000 source

Methods

public void set(int type, long triggerAtMillis, PendingIntent operation) source
public void setExact(int type, long triggerAtMillis, PendingIntent operation) source
public void setExactAndAllowWhileIdle(int type, long triggerAtMillis, PendingIntent operation) source
public void setAndAllowWhileIdle(int type, long triggerAtMillis, PendingIntent operation) source
public void setWindow(int type, long windowStartMillis, long windowLengthMillis, PendingIntent operation) source
public void setRepeating(int type, long triggerAtMillis, long intervalMillis, PendingIntent operation) source
public void setInexactRepeating(int type, long triggerAtMillis, long intervalMillis, PendingIntent operation) source
public void cancel(PendingIntent operation) source
public boolean canScheduleExactAlarms() source
public void setAlarmClock(AlarmClockInfo info, PendingIntent operation) source

An alarm clock: an RTC_WAKEUP alarm, which getNextAlarmClock() reports until it goes off or is canceled.

public AlarmClockInfo getNextAlarmClock() source

Made from ScarletNX's Sail at 166ad3910f80. The framework is ScarletNX's (GPL-3.0-or-later); the parts that follow the Android Open Source Project's sources (Apache-2.0) say so in their files.