Skip to content

Most visited

Recently visited

navigation
added in API level 24

AlarmManager.OnAlarmListener

public static interface AlarmManager.OnAlarmListener

android.app.AlarmManager.OnAlarmListener


Direct-notification alarms: the requester must be running continuously from the time the alarm is set to the time it is delivered, or delivery will fail. Only one-shot alarms can be set using this mechanism, not repeating alarms.

Summary

Public methods

abstract void onAlarm()

Callback method that is invoked by the system when the alarm time is reached.

Public methods

onAlarm

added in API level 24
void onAlarm ()

Callback method that is invoked by the system when the alarm time is reached.

This site uses cookies to store your preferences for site-specific language and display options.

Hooray!

This class requires API level or higher

This doc is hidden because your selected API level for the documentation is . You can change the documentation API level with the selector above the left navigation.

For more information about specifying the API level your app requires, read Supporting Different Platform Versions.

Take a one-minute survey?
Help us improve Android tools and documentation.