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
FieldsModifier and TypeFieldDescriptionfinal booleanDeprecated.final ExecutorDeprecated.final HandlerDeprecated.final longDeprecated.Deprecated.final PendingIntentDeprecated.final PendingIntentDeprecated.final longDeprecated.final intDeprecated. -
Constructor Summary
ConstructorsModifierConstructorDescriptionprotectedScheduledAlarm(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
Modifier and TypeMethodDescriptionintcompareTo(ShadowAlarmManager.ScheduledAlarm scheduledAlarm) longgetTag()longintgetType()longboolean
-
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:
compareToin interfaceComparable<ShadowAlarmManager.ScheduledAlarm>
-