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 booleanallowWhileIdleDeprecated.ExecutorexecutorDeprecated.HandlerhandlerDeprecated.longintervalDeprecated.AlarmManager.OnAlarmListeneronAlarmListenerDeprecated.PendingIntentoperationDeprecated.PendingIntentshowIntentDeprecated.longtriggerAtTimeDeprecated.inttypeDeprecated.
-
Constructor Summary
Constructors Modifier Constructor Description protectedScheduledAlarm(int type, long triggerAtMs, long windowLengthMs, long intervalMs, PendingIntent operation, WorkSource workSource, Object alarmClockInfo, boolean allowWhileIdle)protectedScheduledAlarm(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.protectedScheduledAlarm(long triggerAtMs, ShadowAlarmManager.ScheduledAlarm alarm)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intcompareTo(ShadowAlarmManager.ScheduledAlarm scheduledAlarm)AlarmManager.AlarmClockInfogetAlarmClockInfo()longgetIntervalMs()StringgetTag()longgetTriggerAtMs()intgetType()longgetWindowLengthMs()WorkSourcegetWorkSource()booleanisAllowWhileIdle()
-
-
-
Field Detail
-
type
@Deprecated public final int type
Deprecated.
-
triggerAtTime
@Deprecated public final long triggerAtTime
Deprecated.
-
interval
@Deprecated public final long interval
Deprecated.
-
operation
@Deprecated @Nullable public final PendingIntent operation
Deprecated.
-
onAlarmListener
@Deprecated @Nullable public final AlarmManager.OnAlarmListener onAlarmListener
Deprecated.
-
executor
@Deprecated @Nullable public final Executor executor
Deprecated.
-
allowWhileIdle
@Deprecated public final boolean allowWhileIdle
Deprecated.
-
showIntent
@Deprecated @Nullable public final PendingIntent showIntent
Deprecated.
-
handler
@Deprecated @Nullable public final Handler handler
Deprecated.
-
-
Constructor Detail
-
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
protected ScheduledAlarm(long triggerAtMs, ShadowAlarmManager.ScheduledAlarm alarm)
-
-
Method Detail
-
getType
public int getType()
-
getTriggerAtMs
public long getTriggerAtMs()
-
getWindowLengthMs
public long getWindowLengthMs()
-
getIntervalMs
public long getIntervalMs()
-
getTag
@Nullable public String getTag()
-
getWorkSource
@Nullable public WorkSource getWorkSource()
-
getAlarmClockInfo
@Nullable public AlarmManager.AlarmClockInfo getAlarmClockInfo()
-
isAllowWhileIdle
public boolean isAllowWhileIdle()
-
compareTo
public int compareTo(ShadowAlarmManager.ScheduledAlarm scheduledAlarm)
- Specified by:
compareToin interfaceComparable<ShadowAlarmManager.ScheduledAlarm>
-
-