Class ShadowAlarmManager

    • Constructor Detail

      • ShadowAlarmManager

        public ShadowAlarmManager()
    • Method Detail

      • reset

        @Resetter
        public static void reset()
      • setTimeZone

        @Implementation
        protected void setTimeZone​(String timeZone)
      • set

        @Implementation
        protected void set​(int type,
                           long triggerAtTime,
                           PendingIntent operation)
      • setExact

        @Implementation(minSdk=19)
        protected void setExact​(int type,
                                long triggerAtTime,
                                PendingIntent operation)
      • setWindow

        @Implementation(minSdk=19)
        protected void setWindow​(int type,
                                 long windowStartMillis,
                                 long windowLengthMillis,
                                 PendingIntent operation)
      • setWindow

        @Implementation(minSdk=24)
        protected void setWindow​(int type,
                                 long windowStartMillis,
                                 long windowLengthMillis,
                                 String tag,
                                 AlarmManager.OnAlarmListener listener,
                                 Handler targetHandler)
      • setAndAllowWhileIdle

        @Implementation(minSdk=23)
        protected void setAndAllowWhileIdle​(int type,
                                            long triggerAtTime,
                                            PendingIntent operation)
      • setExactAndAllowWhileIdle

        @Implementation(minSdk=23)
        protected void setExactAndAllowWhileIdle​(int type,
                                                 long triggerAtTime,
                                                 PendingIntent operation)
      • setRepeating

        @Implementation
        protected void setRepeating​(int type,
                                    long triggerAtTime,
                                    long interval,
                                    PendingIntent operation)
      • setInexactRepeating

        @Implementation
        protected void setInexactRepeating​(int type,
                                           long triggerAtMillis,
                                           long intervalMillis,
                                           PendingIntent operation)
      • cancel

        @Implementation
        protected void cancel​(PendingIntent operation)
      • canScheduleExactAlarms

        @Implementation(minSdk=31)
        protected boolean canScheduleExactAlarms()
        Returns the schedule exact alarm state set by setCanScheduleExactAlarms(boolean).
      • setCanScheduleExactAlarms

        public static void setCanScheduleExactAlarms​(boolean scheduleExactAlarms)
        Sets the schedule exact alarm state reported by AlarmManager.canScheduleExactAlarms(), but has no effect otherwise.