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
Modifier and Type Method Description int
compareTo(ShadowAlarmManager.ScheduledAlarm scheduledAlarm)
AlarmManager.AlarmClockInfo
getAlarmClockInfo()
-
Field Details
-
type
public final int type -
triggerAtTime
public final long triggerAtTime -
interval
public final long interval -
operation
-
allowWhileIdle
public final boolean allowWhileIdle -
showIntent
-
onAlarmListener
-
handler
-
-
Constructor Details
-
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 Details
-
getAlarmClockInfo
-
compareTo
- Specified by:
compareTo
in interfaceComparable<ShadowAlarmManager.ScheduledAlarm>
-