@Implements(value=android.app.AlarmManager.class) public class ShadowAlarmManager extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
ShadowAlarmManager.ScheduledAlarm
Container object to hold a PendingIntent and parameters describing when to send it.
|
Constructor and Description |
---|
ShadowAlarmManager() |
Modifier and Type | Method and Description |
---|---|
void |
cancel(android.app.PendingIntent operation) |
android.app.AlarmManager.AlarmClockInfo |
getNextAlarmClock() |
ShadowAlarmManager.ScheduledAlarm |
getNextScheduledAlarm() |
java.util.List<ShadowAlarmManager.ScheduledAlarm> |
getScheduledAlarms() |
ShadowAlarmManager.ScheduledAlarm |
peekNextScheduledAlarm() |
void |
set(int type,
long triggerAtTime,
android.app.PendingIntent operation) |
void |
setAlarmClock(android.app.AlarmManager.AlarmClockInfo info,
android.app.PendingIntent operation) |
void |
setAndAllowWhileIdle(int type,
long triggerAtTime,
android.app.PendingIntent operation) |
void |
setExact(int type,
long triggerAtTime,
android.app.PendingIntent operation) |
void |
setExactAndAllowWhileIdle(int type,
long triggerAtTime,
android.app.PendingIntent operation) |
void |
setInexactRepeating(int type,
long triggerAtMillis,
long intervalMillis,
android.app.PendingIntent operation) |
void |
setRepeating(int type,
long triggerAtTime,
long interval,
android.app.PendingIntent operation) |
void |
setWindow(int type,
long windowStartMillis,
long windowLengthMillis,
android.app.PendingIntent operation) |
@Implementation public void set(int type, long triggerAtTime, android.app.PendingIntent operation)
@Implementation(minSdk=19) public void setExact(int type, long triggerAtTime, android.app.PendingIntent operation)
@Implementation(minSdk=19) public void setWindow(int type, long windowStartMillis, long windowLengthMillis, android.app.PendingIntent operation)
@Implementation(minSdk=23) public void setAndAllowWhileIdle(int type, long triggerAtTime, android.app.PendingIntent operation)
@Implementation(minSdk=23) public void setExactAndAllowWhileIdle(int type, long triggerAtTime, android.app.PendingIntent operation)
@Implementation public void setRepeating(int type, long triggerAtTime, long interval, android.app.PendingIntent operation)
@Implementation public void setInexactRepeating(int type, long triggerAtMillis, long intervalMillis, android.app.PendingIntent operation)
@Implementation(minSdk=21) public void setAlarmClock(android.app.AlarmManager.AlarmClockInfo info, android.app.PendingIntent operation)
@Implementation(minSdk=21) public android.app.AlarmManager.AlarmClockInfo getNextAlarmClock()
public ShadowAlarmManager.ScheduledAlarm getNextScheduledAlarm()
public ShadowAlarmManager.ScheduledAlarm peekNextScheduledAlarm()
public java.util.List<ShadowAlarmManager.ScheduledAlarm> getScheduledAlarms()
@Implementation public void cancel(android.app.PendingIntent operation)