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
Modifier and TypeFieldDescriptionfinal boolean
Deprecated.final Executor
Deprecated.final Handler
Deprecated.final long
Deprecated.Deprecated.final PendingIntent
Deprecated.final PendingIntent
Deprecated.final long
Deprecated.final int
Deprecated. -
Constructor Summary
ModifierConstructorDescriptionprotected
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 TypeMethodDescriptionint
compareTo
(ShadowAlarmManager.ScheduledAlarm scheduledAlarm) long
getTag()
long
int
getType()
long
boolean
-
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, WorkSource workSource, Object alarmClockInfo, boolean allowWhileIdle) -
ScheduledAlarm
protected ScheduledAlarm(int type, long triggerAtMs, long windowLengthMs, long intervalMs, String tag, AlarmManager.OnAlarmListener listener, Executor executor, WorkSource workSource, 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>
-