Package org.robolectric.shadows
Class ShadowAlarmManager.ScheduledAlarm
- java.lang.Object
-
- org.robolectric.shadows.ShadowAlarmManager.ScheduledAlarm
-
- All Implemented Interfaces:
Comparable<ShadowAlarmManager.ScheduledAlarm>
- Enclosing class:
- ShadowAlarmManager
public static class ShadowAlarmManager.ScheduledAlarm extends Object implements Comparable<ShadowAlarmManager.ScheduledAlarm>
Container object to hold a PendingIntent and parameters describing when to send it.
-
-
Field Summary
Fields Modifier and Type Field Description boolean
allowWhileIdle
Handler
handler
long
interval
AlarmManager.OnAlarmListener
onAlarmListener
PendingIntent
operation
PendingIntent
showIntent
long
triggerAtTime
int
type
-
Constructor Summary
Constructors Constructor Description ScheduledAlarm(int type, long triggerAtTime, long interval, PendingIntent operation, PendingIntent showIntent)
ScheduledAlarm(int type, long triggerAtTime, long interval, PendingIntent operation, PendingIntent showIntent, boolean allowWhileIdle)
ScheduledAlarm(int type, long triggerAtTime, PendingIntent operation, PendingIntent showIntent)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(ShadowAlarmManager.ScheduledAlarm scheduledAlarm)
AlarmManager.AlarmClockInfo
getAlarmClockInfo()
-
-
-
Field Detail
-
type
public final int type
-
triggerAtTime
public final long triggerAtTime
-
interval
public final long interval
-
operation
public final PendingIntent operation
-
allowWhileIdle
public final boolean allowWhileIdle
-
showIntent
public final PendingIntent showIntent
-
onAlarmListener
public final AlarmManager.OnAlarmListener onAlarmListener
-
handler
public final Handler handler
-
-
Constructor Detail
-
ScheduledAlarm
public ScheduledAlarm(int type, long triggerAtTime, PendingIntent operation, PendingIntent showIntent)
-
ScheduledAlarm
public ScheduledAlarm(int type, long triggerAtTime, long interval, PendingIntent operation, PendingIntent showIntent)
-
ScheduledAlarm
public ScheduledAlarm(int type, long triggerAtTime, long interval, PendingIntent operation, PendingIntent showIntent, boolean allowWhileIdle)
-
-
Method Detail
-
getAlarmClockInfo
public AlarmManager.AlarmClockInfo getAlarmClockInfo()
-
compareTo
public int compareTo(ShadowAlarmManager.ScheduledAlarm scheduledAlarm)
- Specified by:
compareTo
in interfaceComparable<ShadowAlarmManager.ScheduledAlarm>
-
-