AlarmManager的Constant值

来源:互联网 发布:矩阵音响 编辑:程序博客网 时间:2024/06/07 19:01

Constants
ACTION_NEXT_ALARM_CLOCK_CHANGED
added in API level 21

String ACTION_NEXT_ALARM_CLOCK_CHANGED

Broadcast Action: Sent after the value returned by getNextAlarmClock() has changed.

This is a protected intent that can only be sent by the system. It is only sent to registered receivers.

Constant Value: “android.app.action.NEXT_ALARM_CLOCK_CHANGED”
ELAPSED_REALTIME
added in API level 1

int ELAPSED_REALTIME

Alarm time in SystemClock.elapsedRealtime() (time since boot, including sleep). This alarm does not wake the device up; if it goes off while the device is asleep, it will not be delivered until the next time the device wakes up.

Constant Value: 3 (0x00000003)
ELAPSED_REALTIME_WAKEUP
added in API level 1

int ELAPSED_REALTIME_WAKEUP

Alarm time in SystemClock.elapsedRealtime() (time since boot, including sleep), which will wake up the device when it goes off.

Constant Value: 2 (0x00000002)
INTERVAL_DAY
added in API level 3

long INTERVAL_DAY

Available inexact recurrence interval recognized by setInexactRepeating(int, long, long, PendingIntent) when running on Android prior to API 19.

Constant Value: 86400000 (0x0000000005265c00)
INTERVAL_FIFTEEN_MINUTES
added in API level 3

long INTERVAL_FIFTEEN_MINUTES

Available inexact recurrence interval recognized by setInexactRepeating(int, long, long, PendingIntent) when running on Android prior to API 19.

Constant Value: 900000 (0x00000000000dbba0)
INTERVAL_HALF_DAY
added in API level 3

long INTERVAL_HALF_DAY

Available inexact recurrence interval recognized by setInexactRepeating(int, long, long, PendingIntent) when running on Android prior to API 19.

Constant Value: 43200000 (0x0000000002932e00)
INTERVAL_HALF_HOUR
added in API level 3

long INTERVAL_HALF_HOUR

Available inexact recurrence interval recognized by setInexactRepeating(int, long, long, PendingIntent) when running on Android prior to API 19.

Constant Value: 1800000 (0x00000000001b7740)
INTERVAL_HOUR
added in API level 3

long INTERVAL_HOUR

Available inexact recurrence interval recognized by setInexactRepeating(int, long, long, PendingIntent) when running on Android prior to API 19.

Constant Value: 3600000 (0x000000000036ee80)
RTC
added in API level 1

int RTC

Alarm time in System.currentTimeMillis() (wall clock time in UTC). This alarm does not wake the device up; if it goes off while the device is asleep, it will not be delivered until the next time the device wakes up.

Constant Value: 1 (0x00000001)
RTC_WAKEUP
added in API level 1

int RTC_WAKEUP

Alarm time in System.currentTimeMillis() (wall clock time in UTC), which will wake up the device when it goes off.

Constant Value: 0 (0x00000000)