@Implements(value=android.app.AlarmManager.class) public class ShadowAlarmManager extends 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.
|
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 |
setExact(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) |
@Implementation
public void set(int type,
long triggerAtTime,
android.app.PendingIntent operation)
@Implementation
public void setExact(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 List<ShadowAlarmManager.ScheduledAlarm> getScheduledAlarms()
@Implementation public void cancel(android.app.PendingIntent pendingIntent)
Copyright © 2015. All rights reserved.