Java android.app AlarmManager fields, constructors, methods, implement or subclass

Example usage for Java android.app AlarmManager fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.app AlarmManager.

The text is from its open source code.

Field

intRTC_WAKEUP
Alarm time in System#currentTimeMillis System.currentTimeMillis() (wall clock time in UTC), which will wake up the device when it goes off.
intRTC
Alarm time in System#currentTimeMillis System.currentTimeMillis() (wall clock time in UTC).
intELAPSED_REALTIME_WAKEUP
Alarm time in android.os.SystemClock#elapsedRealtime SystemClock.elapsedRealtime() (time since boot, including sleep), which will wake up the device when it goes off.
intELAPSED_REALTIME
Alarm time in android.os.SystemClock#elapsedRealtime SystemClock.elapsedRealtime() (time since boot, including sleep).
longINTERVAL_FIFTEEN_MINUTES
Available inexact recurrence interval recognized by #setInexactRepeating(int,long,long,PendingIntent) when running on Android prior to API 19.
longINTERVAL_HALF_HOUR
Available inexact recurrence interval recognized by #setInexactRepeating(int,long,long,PendingIntent) when running on Android prior to API 19.
longINTERVAL_HOUR
Available inexact recurrence interval recognized by #setInexactRepeating(int,long,long,PendingIntent) when running on Android prior to API 19.
longINTERVAL_HALF_DAY
Available inexact recurrence interval recognized by #setInexactRepeating(int,long,long,PendingIntent) when running on Android prior to API 19.
longINTERVAL_DAY
Available inexact recurrence interval recognized by #setInexactRepeating(int,long,long,PendingIntent) when running on Android prior to API 19.

Method

voidcancel(PendingIntent operation)
Remove any alarms with a matching Intent .
voidcancel(OnAlarmListener listener)
Remove any alarm scheduled to be delivered to the given OnAlarmListener .
AlarmClockInfogetNextAlarmClock()
Gets information about the next alarm clock currently scheduled.
voidset(@AlarmType int type, long triggerAtMillis, PendingIntent operation)

Schedule an alarm.

voidsetAlarmClock(AlarmClockInfo info, PendingIntent operation)
Schedule an alarm that represents an alarm clock, which will be used to notify the user when it goes off.
voidsetAndAllowWhileIdle(@AlarmType int type, long triggerAtMillis, PendingIntent operation)
Like #set(int,long,PendingIntent) , but this alarm will be allowed to execute even when the system is in low-power idle (a.k.a.
voidsetExact(@AlarmType int type, long triggerAtMillis, PendingIntent operation)
Schedule an alarm to be delivered precisely at the stated time.
voidsetExactAndAllowWhileIdle(@AlarmType int type, long triggerAtMillis, PendingIntent operation)
Like #setExact(int,long,PendingIntent) , but this alarm will be allowed to execute even when the system is in low-power idle modes.
voidsetInexactRepeating(@AlarmType int type, long triggerAtMillis, long intervalMillis, PendingIntent operation)
Schedule a repeating alarm that has inexact trigger time requirements; for example, an alarm that repeats every hour, but not necessarily at the top of every hour.
voidsetRepeating(@AlarmType int type, long triggerAtMillis, long intervalMillis, PendingIntent operation)
Schedule a repeating alarm.
voidsetTime(long millis)
Set the system wall clock time.
voidsetTimeZone(String timeZone)
Sets the system's persistent default time zone.
voidsetWindow(@AlarmType int type, long windowStartMillis, long windowLengthMillis, PendingIntent operation)
Schedule an alarm to be delivered within a given window of time.