@Implements(value=android.app.AlarmManager.class)
public class ShadowAlarmManager
extends java.lang.Object
AlarmManager.| Modifier and Type | Class and Description |
|---|---|
class |
ShadowAlarmManager.ScheduledAlarm
Container object to hold an PendingIntent, together with the alarm
parameters used in a call to
AlarmManager |
| Constructor and Description |
|---|
ShadowAlarmManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
cancel(android.app.PendingIntent pendingIntent) |
ShadowAlarmManager.ScheduledAlarm |
getNextScheduledAlarm()
Non-Android accessor consumes and returns the next scheduled alarm on the
AlarmManager's stack.
|
java.util.List<ShadowAlarmManager.ScheduledAlarm> |
getScheduledAlarms() |
ShadowAlarmManager.ScheduledAlarm |
peekNextScheduledAlarm()
Non-Android accessor returns the most recent scheduled alarm without
consuming it.
|
void |
set(int type,
long triggerAtTime,
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)
public ShadowAlarmManager.ScheduledAlarm getNextScheduledAlarm()
ShadowAlarmManager.ScheduledAlarm objectpublic ShadowAlarmManager.ScheduledAlarm peekNextScheduledAlarm()
ShadowAlarmManager.ScheduledAlarm objectpublic java.util.List<ShadowAlarmManager.ScheduledAlarm> getScheduledAlarms()
@Implementation public void cancel(android.app.PendingIntent pendingIntent)