Intent.ExtraAlarmCount Field

Definition

Used as an int extra field in android.app.AlarmManager pending intents to tell the application being invoked how many pending alarms are being delivered with the intent.

[Android.Runtime.Register("EXTRA_ALARM_COUNT")]
public const string ExtraAlarmCount;
[<Android.Runtime.Register("EXTRA_ALARM_COUNT")>]
val mutable ExtraAlarmCount : string

Field Value

Implements

Attributes

Remarks

Used as an int extra field in android.app.AlarmManager pending intents to tell the application being invoked how many pending alarms are being delivered with the intent. For one-shot alarms this will always be 1. For recurring alarms, this might be greater than 1 if the device was asleep or powered off at the time an earlier alarm would have been delivered.

Note: You must supply a <b>mutable</b> android.app.PendingIntent to AlarmManager while setting your alarms to be able to read this value on receiving them. <em>Mutability of pending intents must be explicitly specified by apps targeting Build.VERSION_CODES#S or higher</em>.

Java documentation for android.content.Intent.EXTRA_ALARM_COUNT.

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