AlarmManager.ActionScheduleExactAlarmPermissionStateChanged Field

Definition

Broadcast Action: An app is granted the android.Manifest.permission#SCHEDULE_EXACT_ALARM permission.

[Android.Runtime.Register("ACTION_SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED", ApiSince=31)]
public const string ActionScheduleExactAlarmPermissionStateChanged;
[<Android.Runtime.Register("ACTION_SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED", ApiSince=31)>]
val mutable ActionScheduleExactAlarmPermissionStateChanged : string

Field Value

Attributes

Remarks

Broadcast Action: An app is granted the android.Manifest.permission#SCHEDULE_EXACT_ALARM permission.

When the user revokes the android.Manifest.permission#SCHEDULE_EXACT_ALARM permission, all alarms scheduled with #setExact, #setExactAndAllowWhileIdle and #setAlarmClock(AlarmClockInfo, PendingIntent) will be deleted.

When the user grants the android.Manifest.permission#SCHEDULE_EXACT_ALARM, this broadcast will be sent. Applications can reschedule all the necessary alarms when receiving it.

This broadcast will <em>not</em> be sent when the user revokes the permission.

<em>Note:</em> Applications are still required to check #canScheduleExactAlarms() before using the above APIs after receiving this broadcast, because it's possible that the permission is already revoked again by the time applications receive this broadcast.

This broadcast will be sent to both runtime receivers and manifest receivers.

This broadcast is sent as a foreground broadcast. See android.content.Intent#FLAG_RECEIVER_FOREGROUND.

When an application receives this broadcast, it's allowed to start a foreground service.

Java documentation for android.app.AlarmManager.ACTION_SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED.

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to