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>
Represents a set alarm.
-
Field Summary
Fields Modifier and Type Field Description boolean
allowWhileIdle
Deprecated.Executor
executor
Deprecated.Handler
handler
Deprecated.long
interval
Deprecated.AlarmManager.OnAlarmListener
onAlarmListener
Deprecated.PendingIntent
operation
Deprecated.PendingIntent
showIntent
Deprecated.long
triggerAtTime
Deprecated.int
type
Deprecated. -
Constructor Summary
Constructors Modifier Constructor Description protected
ScheduledAlarm(int type, long triggerAtMs, long windowLengthMs, long intervalMs, PendingIntent operation, WorkSource workSource, Object alarmClockInfo, boolean allowWhileIdle)
protected
ScheduledAlarm(int type, long triggerAtMs, long windowLengthMs, long intervalMs, String tag, AlarmManager.OnAlarmListener listener, Executor executor, WorkSource workSource, Object alarmClockInfo, boolean allowWhileIdle)
ScheduledAlarm(int type, long triggerAtMs, long intervalMs, PendingIntent operation, PendingIntent showIntent)
Deprecated.ScheduledAlarm(int type, long triggerAtMs, long intervalMs, PendingIntent operation, PendingIntent showIntent, boolean allowWhileIdle)
Deprecated.ScheduledAlarm(int type, long triggerAtMs, PendingIntent operation, PendingIntent showIntent)
Deprecated.protected
ScheduledAlarm(long triggerAtMs, ShadowAlarmManager.ScheduledAlarm alarm)
-
Method Summary
Modifier and Type Method Description int
compareTo(ShadowAlarmManager.ScheduledAlarm scheduledAlarm)
AlarmManager.AlarmClockInfo
getAlarmClockInfo()
long
getIntervalMs()
String
getTag()
long
getTriggerAtMs()
int
getType()
long
getWindowLengthMs()
WorkSource
getWorkSource()
boolean
isAllowWhileIdle()
-
Field Details
-
type
Deprecated. -
triggerAtTime
Deprecated. -
interval
Deprecated. -
operation
Deprecated. -
onAlarmListener
Deprecated. -
executor
Deprecated. -
allowWhileIdle
Deprecated. -
showIntent
Deprecated. -
handler
Deprecated.
-
-
Constructor Details
-
ScheduledAlarm
@Deprecated public ScheduledAlarm(int type, long triggerAtMs, PendingIntent operation, PendingIntent showIntent)Deprecated. -
ScheduledAlarm
@Deprecated public ScheduledAlarm(int type, long triggerAtMs, long intervalMs, PendingIntent operation, PendingIntent showIntent)Deprecated. -
ScheduledAlarm
@Deprecated public ScheduledAlarm(int type, long triggerAtMs, long intervalMs, PendingIntent operation, PendingIntent showIntent, boolean allowWhileIdle)Deprecated. -
ScheduledAlarm
protected ScheduledAlarm(int type, long triggerAtMs, long windowLengthMs, long intervalMs, PendingIntent operation, @Nullable WorkSource workSource, @Nullable Object alarmClockInfo, boolean allowWhileIdle) -
ScheduledAlarm
protected ScheduledAlarm(int type, long triggerAtMs, long windowLengthMs, long intervalMs, @Nullable String tag, AlarmManager.OnAlarmListener listener, Executor executor, @Nullable WorkSource workSource, @Nullable Object alarmClockInfo, boolean allowWhileIdle) -
ScheduledAlarm
-
-
Method Details
-
getType
public int getType() -
getTriggerAtMs
public long getTriggerAtMs() -
getWindowLengthMs
public long getWindowLengthMs() -
getIntervalMs
public long getIntervalMs() -
getTag
-
getWorkSource
-
getAlarmClockInfo
-
isAllowWhileIdle
public boolean isAllowWhileIdle() -
compareTo
- Specified by:
compareTo
in interfaceComparable<ShadowAlarmManager.ScheduledAlarm>
-