This repository has been archived by the owner on May 29, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 14
/
AlarmManager.xml
1764 lines (1756 loc) · 125 KB
/
AlarmManager.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<Type Name="AlarmManager" FullName="Android.App.AlarmManager">
<TypeSignature Language="C#" Value="public class AlarmManager : Java.Lang.Object" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit AlarmManager extends Java.Lang.Object" />
<TypeSignature Language="DocId" Value="T:Android.App.AlarmManager" />
<TypeSignature Language="F#" Value="type AlarmManager = class
 inherit Object" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Java.Lang.Object</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("android/app/AlarmManager", DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/app/AlarmManager", DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="1">
<summary>This class provides access to the system alarm services.</summary>
<remarks>
<para>This class provides access to the system alarm services. These allow you
to schedule your application to be run at some point in the future. When
an alarm goes off, the <c>Intent</c> that had been registered for it
is broadcast by the system, automatically starting the target application
if it is not already running. Registered alarms are retained while the
device is asleep (and can optionally wake the device up if they go off
during that time), but will be cleared if it is turned off and rebooted.</para>
<para>The Alarm Manager holds a CPU wake lock as long as the alarm receiver's
onReceive() method is executing. This guarantees that the phone will not sleep
until you have finished handling the broadcast. Once onReceive() returns, the
Alarm Manager releases this wake lock. This means that the phone will in some
cases sleep as soon as your onReceive() method completes. If your alarm receiver
called <c>android.content.Context#startService Context.startService()</c>, it
is possible that the phone will sleep before the requested service is launched.
To prevent this, your BroadcastReceiver and Service will need to implement a
separate wake lock policy to ensure that the phone continues running until the
service becomes available.</para>
<para><b>Note: The Alarm Manager is intended for cases where you want to have
your application code run at a specific time, even if your application is
not currently running. For normal timing operations (ticks, timeouts,
etc) it is easier and much more efficient to use
<c>android.os.Handler</c>.</b>
<p class="caution"><strong>Note:</strong> Beginning with API 19
(<c>android.os.Build.VERSION_CODES#KITKAT</c>) alarm delivery is inexact:
the OS will shift alarms in order to minimize wakeups and battery use. There are
new APIs to support applications which need strict delivery guarantees; see
<c>#setWindow(int, long, long, PendingIntent)</c> and
<c>#setExact(int, long, PendingIntent)</c>. Applications whose <c>targetSdkVersion</c>
is earlier than API 19 will continue to see the previous behavior in which all
alarms are delivered exactly when requested.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager" title="Reference documentation">Java documentation for <code>android.app.AlarmManager</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected AlarmManager (IntPtr javaReference, Android.Runtime.JniHandleOwnership transfer);" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig specialname rtspecialname instance void .ctor(native int javaReference, valuetype Android.Runtime.JniHandleOwnership transfer) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.App.AlarmManager.#ctor(System.IntPtr,Android.Runtime.JniHandleOwnership)" />
<MemberSignature Language="F#" Value="new Android.App.AlarmManager : nativeint * Android.Runtime.JniHandleOwnership -> Android.App.AlarmManager" Usage="new Android.App.AlarmManager (javaReference, transfer)" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Parameters>
<Parameter Name="javaReference" Type="System.IntPtr" />
<Parameter Name="transfer" Type="Android.Runtime.JniHandleOwnership" />
</Parameters>
<Docs>
<param name="javaReference">A <see cref="T:System.IntPtr" />containing a Java Native Interface (JNI) object reference.</param>
<param name="transfer">A <see cref="T:Android.Runtime.JniHandleOwnership" />indicating how to handle <paramref name="javaReference" /></param>
<summary>A constructor used when creating managed representations of JNI objects; called by the runtime.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="ActionNextAlarmClockChanged">
<MemberSignature Language="C#" Value="public const string ActionNextAlarmClockChanged;" />
<MemberSignature Language="ILAsm" Value=".field public static literal string ActionNextAlarmClockChanged" />
<MemberSignature Language="DocId" Value="F:Android.App.AlarmManager.ActionNextAlarmClockChanged" />
<MemberSignature Language="F#" Value="val mutable ActionNextAlarmClockChanged : string" Usage="Android.App.AlarmManager.ActionNextAlarmClockChanged" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("ACTION_NEXT_ALARM_CLOCK_CHANGED")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("ACTION_NEXT_ALARM_CLOCK_CHANGED")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Broadcast Action: Sent after the value returned by
<c>#getNextAlarmClock()</c> has changed.</summary>
<remarks>
<para>Broadcast Action: Sent after the value returned by
<c>#getNextAlarmClock()</c> has changed.
<p class="note">This is a protected intent that can only be sent by the system.
It is only sent to registered receivers.</p></para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager#ACTION_NEXT_ALARM_CLOCK_CHANGED" title="Reference documentation">Java documentation for <code>android.app.AlarmManager.ACTION_NEXT_ALARM_CLOCK_CHANGED</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="ActionScheduleExactAlarmPermissionStateChanged">
<MemberSignature Language="C#" Value="public const string ActionScheduleExactAlarmPermissionStateChanged;" />
<MemberSignature Language="ILAsm" Value=".field public static literal string ActionScheduleExactAlarmPermissionStateChanged" />
<MemberSignature Language="DocId" Value="F:Android.App.AlarmManager.ActionScheduleExactAlarmPermissionStateChanged" />
<MemberSignature Language="F#" Value="val mutable ActionScheduleExactAlarmPermissionStateChanged : string" Usage="Android.App.AlarmManager.ActionScheduleExactAlarmPermissionStateChanged" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("ACTION_SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED", ApiSince=31)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("ACTION_SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED", ApiSince=31)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android31.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android31.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Broadcast Action: An app is granted the
<c>android.Manifest.permission#SCHEDULE_EXACT_ALARM</c> permission.</summary>
<remarks>
<para>Broadcast Action: An app is granted the
<c>android.Manifest.permission#SCHEDULE_EXACT_ALARM</c> permission.</para>
<para>When the user revokes the <c>android.Manifest.permission#SCHEDULE_EXACT_ALARM</c>
permission, all alarms scheduled with
<c>#setExact</c>, <c>#setExactAndAllowWhileIdle</c> and
<c>#setAlarmClock(AlarmClockInfo, PendingIntent)</c> will be deleted.</para>
<para>When the user grants the <c>android.Manifest.permission#SCHEDULE_EXACT_ALARM</c>,
this broadcast will be sent. Applications can reschedule all the necessary alarms when
receiving it.</para>
<para>This broadcast will <em>not</em> be sent when the user revokes the permission.</para>
<para><em>Note:</em>
Applications are still required to check <c>#canScheduleExactAlarms()</c>
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.</para>
<para>This broadcast will be sent to both runtime receivers and manifest receivers.</para>
<para>This broadcast is sent as a foreground broadcast.
See <c>android.content.Intent#FLAG_RECEIVER_FOREGROUND</c>.</para>
<para>When an application receives this broadcast, it's allowed to start a foreground service.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager#ACTION_SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED" title="Reference documentation">Java documentation for <code>android.app.AlarmManager.ACTION_SCHEDULE_EXACT_ALARM_PERMISSION_STATE_CHANGED</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Cancel">
<MemberSignature Language="C#" Value="public virtual void Cancel (Android.App.AlarmManager.IOnAlarmListener listener);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Cancel(class Android.App.AlarmManager/IOnAlarmListener listener) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.App.AlarmManager.Cancel(Android.App.AlarmManager.IOnAlarmListener)" />
<MemberSignature Language="F#" Value="abstract member Cancel : Android.App.AlarmManager.IOnAlarmListener -> unit
override this.Cancel : Android.App.AlarmManager.IOnAlarmListener -> unit" Usage="alarmManager.Cancel listener" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("cancel", "(Landroid/app/AlarmManager$OnAlarmListener;)V", "GetCancel_Landroid_app_AlarmManager_OnAlarmListener_Handler", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("cancel", "(Landroid/app/AlarmManager$OnAlarmListener;)V", "GetCancel_Landroid_app_AlarmManager_OnAlarmListener_Handler", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="listener" Type="Android.App.AlarmManager+IOnAlarmListener" />
</Parameters>
<Docs>
<param name="listener">OnAlarmListener instance that is the target of a currently-set alarm.</param>
<summary>Remove any alarm scheduled to be delivered to the given <c>OnAlarmListener</c>.</summary>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager#cancel(android.app.OnAlarmListener)" title="Reference documentation">Java documentation for <code>android.app.AlarmManager.cancel(android.app.OnAlarmListener)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="Cancel">
<MemberSignature Language="C#" Value="public virtual void Cancel (Android.App.PendingIntent operation);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Cancel(class Android.App.PendingIntent operation) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.App.AlarmManager.Cancel(Android.App.PendingIntent)" />
<MemberSignature Language="F#" Value="abstract member Cancel : Android.App.PendingIntent -> unit
override this.Cancel : Android.App.PendingIntent -> unit" Usage="alarmManager.Cancel operation" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("cancel", "(Landroid/app/PendingIntent;)V", "GetCancel_Landroid_app_PendingIntent_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("cancel", "(Landroid/app/PendingIntent;)V", "GetCancel_Landroid_app_PendingIntent_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="operation" Type="Android.App.PendingIntent" />
</Parameters>
<Docs>
<param name="operation">IntentSender which matches a previously added
IntentSender. This parameter must not be <c>null</c>.</param>
<summary>Remove any alarms with a matching <c>Intent</c>.</summary>
<remarks>
<para>Remove any alarms with a matching <c>Intent</c>.
Any alarm, of any type, whose Intent matches this one (as defined by
<c>Intent#filterEquals</c>), will be canceled.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager#cancel(android.app.PendingIntent)" title="Reference documentation">Java documentation for <code>android.app.AlarmManager.cancel(android.app.PendingIntent)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<altmember cref="M:Android.App.AlarmManager.Set(Android.App.AlarmType, System.Int64, System.Int64)" />
</Docs>
</Member>
<Member MemberName="CancelAll">
<MemberSignature Language="C#" Value="public virtual void CancelAll ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void CancelAll() cil managed" />
<MemberSignature Language="DocId" Value="M:Android.App.AlarmManager.CancelAll" />
<MemberSignature Language="F#" Value="abstract member CancelAll : unit -> unit
override this.CancelAll : unit -> unit" Usage="alarmManager.CancelAll " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("cancelAll", "()V", "GetCancelAllHandler", ApiSince=34)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("cancelAll", "()V", "GetCancelAllHandler", ApiSince=34)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android34.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android34.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Remove all alarms previously set by the caller, if any.</summary>
<remarks>
<para>Remove all alarms previously set by the caller, if any.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager#cancelAll()" title="Reference documentation">Java documentation for <code>android.app.AlarmManager.cancelAll()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="CanScheduleExactAlarms">
<MemberSignature Language="C#" Value="public virtual bool CanScheduleExactAlarms ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool CanScheduleExactAlarms() cil managed" />
<MemberSignature Language="DocId" Value="M:Android.App.AlarmManager.CanScheduleExactAlarms" />
<MemberSignature Language="F#" Value="abstract member CanScheduleExactAlarms : unit -> bool
override this.CanScheduleExactAlarms : unit -> bool" Usage="alarmManager.CanScheduleExactAlarms " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("canScheduleExactAlarms", "()Z", "GetCanScheduleExactAlarmsHandler", ApiSince=31)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("canScheduleExactAlarms", "()Z", "GetCanScheduleExactAlarmsHandler", ApiSince=31)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android31.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android31.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Called to check if the caller can schedule exact alarms.</summary>
<returns>
<c>true</c> if the caller can schedule exact alarms, <c>false</c> otherwise.</returns>
<remarks>
<para>Called to check if the caller can schedule exact alarms.
Your app schedules exact alarms when it calls any of the <c>setExact...</c> or
<c>#setAlarmClock(AlarmClockInfo, PendingIntent) setAlarmClock</c> API methods.</para>
<para>Apps targeting <c>Build.VERSION_CODES#S</c> or higher can schedule exact alarms only if they
have the <c>Manifest.permission#SCHEDULE_EXACT_ALARM</c> permission or they are on the
device's power-save exemption list.
These apps can also
start <c>android.provider.Settings#ACTION_REQUEST_SCHEDULE_EXACT_ALARM</c> to
request this permission from the user.</para>
<para>Apps targeting lower sdk versions, can always schedule exact alarms.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager#canScheduleExactAlarms()" title="Reference documentation">Java documentation for <code>android.app.AlarmManager.canScheduleExactAlarms()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="FromContext">
<MemberSignature Language="C#" Value="public static Android.App.AlarmManager? FromContext (Android.Content.Context context);" />
<MemberSignature Language="ILAsm" Value=".method public static hidebysig class Android.App.AlarmManager FromContext(class Android.Content.Context context) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.App.AlarmManager.FromContext(Android.Content.Context)" />
<MemberSignature Language="F#" Value="static member FromContext : Android.Content.Context -> Android.App.AlarmManager" Usage="Android.App.AlarmManager.FromContext context" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<ReturnValue>
<ReturnType>Android.App.AlarmManager</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="context" Type="Android.Content.Context" />
</Parameters>
<Docs>
<param name="context">To be added.</param>
<summary>To be added.</summary>
<returns>To be added.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="IntervalDay">
<MemberSignature Language="C#" Value="public const long IntervalDay = 86400000;" />
<MemberSignature Language="ILAsm" Value=".field public static literal int64 IntervalDay = (86400000)" />
<MemberSignature Language="DocId" Value="F:Android.App.AlarmManager.IntervalDay" />
<MemberSignature Language="F#" Value="val mutable IntervalDay : int64" Usage="Android.App.AlarmManager.IntervalDay" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("INTERVAL_DAY")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("INTERVAL_DAY")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int64</ReturnType>
</ReturnValue>
<MemberValue>86400000</MemberValue>
<Docs>
<summary>Available inexact recurrence interval recognized by
<c>#setInexactRepeating(int, long, long, PendingIntent)</c>
when running on Android prior to API 19.</summary>
<remarks>
<para>Available inexact recurrence interval recognized by
<c>#setInexactRepeating(int, long, long, PendingIntent)</c>
when running on Android prior to API 19.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager#INTERVAL_DAY" title="Reference documentation">Java documentation for <code>android.app.AlarmManager.INTERVAL_DAY</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 3" />
</Docs>
</Member>
<Member MemberName="IntervalFifteenMinutes">
<MemberSignature Language="C#" Value="public const long IntervalFifteenMinutes = 900000;" />
<MemberSignature Language="ILAsm" Value=".field public static literal int64 IntervalFifteenMinutes = (900000)" />
<MemberSignature Language="DocId" Value="F:Android.App.AlarmManager.IntervalFifteenMinutes" />
<MemberSignature Language="F#" Value="val mutable IntervalFifteenMinutes : int64" Usage="Android.App.AlarmManager.IntervalFifteenMinutes" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("INTERVAL_FIFTEEN_MINUTES")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("INTERVAL_FIFTEEN_MINUTES")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int64</ReturnType>
</ReturnValue>
<MemberValue>900000</MemberValue>
<Docs>
<summary>Available inexact recurrence interval recognized by
<c>#setInexactRepeating(int, long, long, PendingIntent)</c>
when running on Android prior to API 19.</summary>
<remarks>
<para>Available inexact recurrence interval recognized by
<c>#setInexactRepeating(int, long, long, PendingIntent)</c>
when running on Android prior to API 19.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager#INTERVAL_FIFTEEN_MINUTES" title="Reference documentation">Java documentation for <code>android.app.AlarmManager.INTERVAL_FIFTEEN_MINUTES</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 3" />
</Docs>
</Member>
<Member MemberName="IntervalHalfDay">
<MemberSignature Language="C#" Value="public const long IntervalHalfDay = 43200000;" />
<MemberSignature Language="ILAsm" Value=".field public static literal int64 IntervalHalfDay = (43200000)" />
<MemberSignature Language="DocId" Value="F:Android.App.AlarmManager.IntervalHalfDay" />
<MemberSignature Language="F#" Value="val mutable IntervalHalfDay : int64" Usage="Android.App.AlarmManager.IntervalHalfDay" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("INTERVAL_HALF_DAY")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("INTERVAL_HALF_DAY")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int64</ReturnType>
</ReturnValue>
<MemberValue>43200000</MemberValue>
<Docs>
<summary>Available inexact recurrence interval recognized by
<c>#setInexactRepeating(int, long, long, PendingIntent)</c>
when running on Android prior to API 19.</summary>
<remarks>
<para>Available inexact recurrence interval recognized by
<c>#setInexactRepeating(int, long, long, PendingIntent)</c>
when running on Android prior to API 19.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager#INTERVAL_HALF_DAY" title="Reference documentation">Java documentation for <code>android.app.AlarmManager.INTERVAL_HALF_DAY</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 3" />
</Docs>
</Member>
<Member MemberName="IntervalHalfHour">
<MemberSignature Language="C#" Value="public const long IntervalHalfHour = 1800000;" />
<MemberSignature Language="ILAsm" Value=".field public static literal int64 IntervalHalfHour = (1800000)" />
<MemberSignature Language="DocId" Value="F:Android.App.AlarmManager.IntervalHalfHour" />
<MemberSignature Language="F#" Value="val mutable IntervalHalfHour : int64" Usage="Android.App.AlarmManager.IntervalHalfHour" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("INTERVAL_HALF_HOUR")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("INTERVAL_HALF_HOUR")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int64</ReturnType>
</ReturnValue>
<MemberValue>1800000</MemberValue>
<Docs>
<summary>Available inexact recurrence interval recognized by
<c>#setInexactRepeating(int, long, long, PendingIntent)</c>
when running on Android prior to API 19.</summary>
<remarks>
<para>Available inexact recurrence interval recognized by
<c>#setInexactRepeating(int, long, long, PendingIntent)</c>
when running on Android prior to API 19.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager#INTERVAL_HALF_HOUR" title="Reference documentation">Java documentation for <code>android.app.AlarmManager.INTERVAL_HALF_HOUR</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 3" />
</Docs>
</Member>
<Member MemberName="IntervalHour">
<MemberSignature Language="C#" Value="public const long IntervalHour = 3600000;" />
<MemberSignature Language="ILAsm" Value=".field public static literal int64 IntervalHour = (3600000)" />
<MemberSignature Language="DocId" Value="F:Android.App.AlarmManager.IntervalHour" />
<MemberSignature Language="F#" Value="val mutable IntervalHour : int64" Usage="Android.App.AlarmManager.IntervalHour" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("INTERVAL_HOUR")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("INTERVAL_HOUR")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Int64</ReturnType>
</ReturnValue>
<MemberValue>3600000</MemberValue>
<Docs>
<summary>Available inexact recurrence interval recognized by
<c>#setInexactRepeating(int, long, long, PendingIntent)</c>
when running on Android prior to API 19.</summary>
<remarks>
<para>Available inexact recurrence interval recognized by
<c>#setInexactRepeating(int, long, long, PendingIntent)</c>
when running on Android prior to API 19.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager#INTERVAL_HOUR" title="Reference documentation">Java documentation for <code>android.app.AlarmManager.INTERVAL_HOUR</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 3" />
</Docs>
</Member>
<Member MemberName="JniPeerMembers">
<MemberSignature Language="C#" Value="public override Java.Interop.JniPeerMembers JniPeerMembers { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Java.Interop.JniPeerMembers JniPeerMembers" />
<MemberSignature Language="DocId" Value="P:Android.App.AlarmManager.JniPeerMembers" />
<MemberSignature Language="F#" Value="member this.JniPeerMembers : Java.Interop.JniPeerMembers" Usage="Android.App.AlarmManager.JniPeerMembers" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.ComponentModel.EditorBrowsable(System.ComponentModel.EditorBrowsableState.Never)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)]</AttributeName>
<AttributeName Language="F#">[<System.Diagnostics.DebuggerBrowsable(System.Diagnostics.DebuggerBrowsableState.Never)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Interop.JniPeerMembers</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="NextAlarmClock">
<MemberSignature Language="C#" Value="public virtual Android.App.AlarmManager.AlarmClockInfo? NextAlarmClock { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class Android.App.AlarmManager/AlarmClockInfo NextAlarmClock" />
<MemberSignature Language="DocId" Value="P:Android.App.AlarmManager.NextAlarmClock" />
<MemberSignature Language="F#" Value="member this.NextAlarmClock : Android.App.AlarmManager.AlarmClockInfo" Usage="Android.App.AlarmManager.NextAlarmClock" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getNextAlarmClock", "()Landroid/app/AlarmManager$AlarmClockInfo;", "GetGetNextAlarmClockHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getNextAlarmClock", "()Landroid/app/AlarmManager$AlarmClockInfo;", "GetGetNextAlarmClockHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.App.AlarmManager+AlarmClockInfo</ReturnType>
</ReturnValue>
<Docs>
<summary>Gets information about the next alarm clock currently scheduled.</summary>
<value>An <c>AlarmClockInfo</c> object describing the next upcoming alarm
clock event that will occur. If there are no alarm clock events currently
scheduled, this method will return <c>null</c>.</value>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager#getNextAlarmClock()" title="Reference documentation">Java documentation for <code>android.app.AlarmManager.getNextAlarmClock()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<altmember cref="M:Android.App.AlarmManager.SetAlarmClock(.AlarmClockInfo, Android.App.PendingIntent)" />
</Docs>
<since version="Added in API level 21" />
</Member>
<Member MemberName="Set">
<MemberSignature Language="C#" Value="public virtual void Set (Android.App.AlarmType type, long triggerAtMillis, Android.App.PendingIntent operation);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Set(valuetype Android.App.AlarmType type, int64 triggerAtMillis, class Android.App.PendingIntent operation) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.App.AlarmManager.Set(Android.App.AlarmType,System.Int64,Android.App.PendingIntent)" />
<MemberSignature Language="F#" Value="abstract member Set : Android.App.AlarmType * int64 * Android.App.PendingIntent -> unit
override this.Set : Android.App.AlarmType * int64 * Android.App.PendingIntent -> unit" Usage="alarmManager.Set (type, triggerAtMillis, operation)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("set", "(IJLandroid/app/PendingIntent;)V", "GetSet_IJLandroid_app_PendingIntent_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("set", "(IJLandroid/app/PendingIntent;)V", "GetSet_IJLandroid_app_PendingIntent_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="type" Type="Android.App.AlarmType">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="triggerAtMillis" Type="System.Int64" />
<Parameter Name="operation" Type="Android.App.PendingIntent" />
</Parameters>
<Docs>
<param name="type">type of alarm.</param>
<param name="triggerAtMillis">time in milliseconds that the alarm should go
off, using the appropriate clock (depending on the alarm type).</param>
<param name="operation">Action to perform when the alarm goes off;
typically comes from <c>PendingIntent#getBroadcast
IntentSender.getBroadcast()</c>.</param>
<summary>Schedule an alarm.</summary>
<remarks>
<para>Schedule an alarm. <b>Note: for timing operations (ticks, timeouts,
etc) it is easier and much more efficient to use <c>android.os.Handler</c>.</b>
If there is already an alarm scheduled for the same IntentSender, that previous
alarm will first be canceled.</para>
<para>If the stated trigger time is in the past, the alarm will be triggered
immediately. If there is already an alarm for this Intent
scheduled (with the equality of two intents being defined by
<c>Intent#filterEquals</c>), then it will be removed and replaced by
this one.</para>
<para>The alarm is an Intent broadcast that goes to a broadcast receiver that
you registered with <c>android.content.Context#registerReceiver</c>
or through the &lt;receiver&gt; tag in an AndroidManifest.xml file.</para>
<para>Alarm intents are delivered with a data extra of type int called
<c>Intent#EXTRA_ALARM_COUNT Intent.EXTRA_ALARM_COUNT</c> that indicates
how many past alarm events have been accumulated into this intent
broadcast. Recurring alarms that have gone undelivered because the
phone was asleep may have a count greater than one when delivered.
<div class="note"></para>
<para><b>Note:</b> Beginning in API 19, the trigger time passed to this method
is treated as inexact: the alarm will not be delivered before this time, but
may be deferred and delivered some time later. The OS will use
this policy in order to "batch" alarms together across the entire system,
minimizing the number of times the device needs to "wake up" and minimizing
battery use. In general, alarms scheduled in the near future will not
be deferred as long as alarms scheduled far in the future.</para>
<para>With the new batching policy, delivery ordering guarantees are not as
strong as they were previously. If the application sets multiple alarms,
it is possible that these alarms' <em>actual</em> delivery ordering may not match
the order of their <em>requested</em> delivery times. If your application has
strong ordering requirements there are other APIs that you can use to get
the necessary behavior; see <c>#setWindow(int, long, long, PendingIntent)</c>
and <c>#setExact(int, long, PendingIntent)</c>.</para>
<para>Applications whose <c>targetSdkVersion</c> is before API 19 will
continue to get the previous alarm behavior: all of their scheduled alarms
will be treated as exact.
</div></para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager#set(int,%20long,%20android.app.PendingIntent)" title="Reference documentation">Java documentation for <code>android.app.AlarmManager.set(int, long, android.app.PendingIntent)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
<altmember cref="T:Android.OS.Handler" />
<altmember cref="M:Android.App.AlarmManager.SetExact(Android.App.AlarmType, System.Int64, System.Int64)" />
<altmember cref="M:Android.App.AlarmManager.SetRepeating(Android.App.AlarmType, System.Int64, System.Int64, System.Int64)" />
<altmember cref="M:Android.App.AlarmManager.SetWindow(Android.App.AlarmType, System.Int64, System.Int64, System.Int64)" />
<altmember cref="M:Android.App.AlarmManager.Cancel(Android.App.PendingIntent)" />
<altmember cref="M:Android.Content.Context.SendBroadcast(Android.Content.Intent)" />
<altmember cref="M:Android.Content.Context.RegisterReceiver(Android.Content.BroadcastReceiver, Android.Content.IntentFilter)" />
<altmember cref="M:Android.Content.Intent.FilterEquals(Android.Content.Intent)" />
</Docs>
</Member>
<Member MemberName="Set">
<MemberSignature Language="C#" Value="public virtual void Set (Android.App.AlarmType type, long triggerAtMillis, string? tag, Android.App.AlarmManager.IOnAlarmListener listener, Android.OS.Handler? targetHandler);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void Set(valuetype Android.App.AlarmType type, int64 triggerAtMillis, string tag, class Android.App.AlarmManager/IOnAlarmListener listener, class Android.OS.Handler targetHandler) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.App.AlarmManager.Set(Android.App.AlarmType,System.Int64,System.String,Android.App.AlarmManager.IOnAlarmListener,Android.OS.Handler)" />
<MemberSignature Language="F#" Value="abstract member Set : Android.App.AlarmType * int64 * string * Android.App.AlarmManager.IOnAlarmListener * Android.OS.Handler -> unit
override this.Set : Android.App.AlarmType * int64 * string * Android.App.AlarmManager.IOnAlarmListener * Android.OS.Handler -> unit" Usage="alarmManager.Set (type, triggerAtMillis, tag, listener, targetHandler)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("set", "(IJLjava/lang/String;Landroid/app/AlarmManager$OnAlarmListener;Landroid/os/Handler;)V", "GetSet_IJLjava_lang_String_Landroid_app_AlarmManager_OnAlarmListener_Landroid_os_Handler_Handler", ApiSince=24)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("set", "(IJLjava/lang/String;Landroid/app/AlarmManager$OnAlarmListener;Landroid/os/Handler;)V", "GetSet_IJLjava_lang_String_Landroid_app_AlarmManager_OnAlarmListener_Landroid_os_Handler_Handler", ApiSince=24)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android24.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android24.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="type" Type="Android.App.AlarmType">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="triggerAtMillis" Type="System.Int64" />
<Parameter Name="tag" Type="System.String" />
<Parameter Name="listener" Type="Android.App.AlarmManager+IOnAlarmListener" />
<Parameter Name="targetHandler" Type="Android.OS.Handler" />
</Parameters>
<Docs>
<param name="type">To be added.</param>
<param name="triggerAtMillis">To be added.</param>
<param name="tag">To be added.</param>
<param name="listener">To be added.</param>
<param name="targetHandler">To be added.</param>
<summary>To be added.</summary>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="SetAlarmClock">
<MemberSignature Language="C#" Value="public virtual void SetAlarmClock (Android.App.AlarmManager.AlarmClockInfo info, Android.App.PendingIntent operation);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void SetAlarmClock(class Android.App.AlarmManager/AlarmClockInfo info, class Android.App.PendingIntent operation) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.App.AlarmManager.SetAlarmClock(Android.App.AlarmManager.AlarmClockInfo,Android.App.PendingIntent)" />
<MemberSignature Language="F#" Value="abstract member SetAlarmClock : Android.App.AlarmManager.AlarmClockInfo * Android.App.PendingIntent -> unit
override this.SetAlarmClock : Android.App.AlarmManager.AlarmClockInfo * Android.App.PendingIntent -> unit" Usage="alarmManager.SetAlarmClock (info, operation)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("setAlarmClock", "(Landroid/app/AlarmManager$AlarmClockInfo;Landroid/app/PendingIntent;)V", "GetSetAlarmClock_Landroid_app_AlarmManager_AlarmClockInfo_Landroid_app_PendingIntent_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("setAlarmClock", "(Landroid/app/AlarmManager$AlarmClockInfo;Landroid/app/PendingIntent;)V", "GetSetAlarmClock_Landroid_app_AlarmManager_AlarmClockInfo_Landroid_app_PendingIntent_Handler")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.RequiresPermission("android.permission.SCHEDULE_EXACT_ALARM")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.RequiresPermission("android.permission.SCHEDULE_EXACT_ALARM")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="info" Type="Android.App.AlarmManager+AlarmClockInfo" />
<Parameter Name="operation" Type="Android.App.PendingIntent" />
</Parameters>
<Docs>
<param name="info">To be added.</param>
<param name="operation">Action to perform when the alarm goes off;
typically comes from <format type="text/html"><a href="https://docs.microsoft.com/en-us/search/index?search='M:Android App PendingIntent GetBroadcast(Android Content Context,System Int32,System Int32,System Int32)';scope=Xamarin" title="M:Android.App.PendingIntent.GetBroadcast(Android.Content.Context,System.Int32,System.Int32,System.Int32)">M:Android.App.PendingIntent.GetBroadcast(Android.Content.Context,System.Int32,System.Int32,System.Int32)</a></format>.</param>
<summary>Schedule an alarm that represents an alarm clock, which will be used to notify the user
when it goes off.</summary>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager#setAlarmClock(android.app.AlarmClockInfo,%20android.app.PendingIntent)" title="Reference documentation">Java documentation for <code>android.app.AlarmManager.setAlarmClock(android.app.AlarmClockInfo, android.app.PendingIntent)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<altmember cref="M:Android.App.AlarmManager.Set(Android.App.AlarmType, System.Int64, System.Int64)" />
<altmember cref="M:Android.App.AlarmManager.SetRepeating(Android.App.AlarmType, System.Int64, System.Int64, System.Int64)" />
<altmember cref="M:Android.App.AlarmManager.SetWindow(Android.App.AlarmType, System.Int64, System.Int64, System.Int64)" />
<altmember cref="M:Android.App.AlarmManager.SetExact(Android.App.AlarmType, System.Int64, System.Int64)" />
<altmember cref="M:Android.App.AlarmManager.Cancel(Android.App.PendingIntent)" />
<altmember cref="P:Android.App.AlarmManager.NextAlarmClock" />
<altmember cref="M:Android.Content.Context.SendBroadcast(Android.Content.Intent)" />
<altmember cref="M:Android.Content.Context.RegisterReceiver(Android.Content.BroadcastReceiver, Android.Content.IntentFilter)" />
<altmember cref="M:Android.Content.Intent.FilterEquals(Android.Content.Intent)" />
</Docs>
</Member>
<Member MemberName="SetAndAllowWhileIdle">
<MemberSignature Language="C#" Value="public virtual void SetAndAllowWhileIdle (Android.App.AlarmType type, long triggerAtMillis, Android.App.PendingIntent operation);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void SetAndAllowWhileIdle(valuetype Android.App.AlarmType type, int64 triggerAtMillis, class Android.App.PendingIntent operation) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.App.AlarmManager.SetAndAllowWhileIdle(Android.App.AlarmType,System.Int64,Android.App.PendingIntent)" />
<MemberSignature Language="F#" Value="abstract member SetAndAllowWhileIdle : Android.App.AlarmType * int64 * Android.App.PendingIntent -> unit
override this.SetAndAllowWhileIdle : Android.App.AlarmType * int64 * Android.App.PendingIntent -> unit" Usage="alarmManager.SetAndAllowWhileIdle (type, triggerAtMillis, operation)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("setAndAllowWhileIdle", "(IJLandroid/app/PendingIntent;)V", "GetSetAndAllowWhileIdle_IJLandroid_app_PendingIntent_Handler", ApiSince=23)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("setAndAllowWhileIdle", "(IJLandroid/app/PendingIntent;)V", "GetSetAndAllowWhileIdle_IJLandroid_app_PendingIntent_Handler", ApiSince=23)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android23.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android23.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="type" Type="Android.App.AlarmType">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="triggerAtMillis" Type="System.Int64" />
<Parameter Name="operation" Type="Android.App.PendingIntent" />
</Parameters>
<Docs>
<param name="type">type of alarm.</param>
<param name="triggerAtMillis">time in milliseconds that the alarm should go
off, using the appropriate clock (depending on the alarm type).</param>
<param name="operation">Action to perform when the alarm goes off;
typically comes from <c>PendingIntent#getBroadcast
IntentSender.getBroadcast()</c>.</param>
<summary>Like <c>#set(int, long, PendingIntent)</c>, but this alarm will be allowed to execute
even when the system is in low-power idle (a.</summary>
<remarks>
<para>Like <c>#set(int, long, PendingIntent)</c>, but this alarm will be allowed to execute
even when the system is in low-power idle (a.k.a. doze) modes. This type of alarm must
<b>only</b> be used for situations where it is actually required that the alarm go off while
in idle -- a reasonable example would be for a calendar notification that should make a
sound so the user is aware of it. When the alarm is dispatched, the app will also be
added to the system's temporary power exemption list for approximately 10 seconds to allow
that application to acquire further wake locks in which to complete its work.</p></para>
<para>These alarms can significantly impact the power use
of the device when idle (and thus cause significant battery blame to the app scheduling
them), so they should be used with care. To reduce abuse, there are restrictions on how
frequently these alarms will go off for a particular application.
Under normal system operation, it will not dispatch these
alarms more than about every minute (at which point every such pending alarm is
dispatched); when in low-power idle modes this duration may be significantly longer,
such as 15 minutes.</para>
<para>Unlike other alarms, the system is free to reschedule this type of alarm to happen
out of order with any other alarms, even those from the same app. This will clearly happen
when the device is idle (since this alarm can go off while idle, when any other alarms
from the app will be held until later), but may also happen even when not idle.</para>
<para>Regardless of the app's target SDK version, this call always allows batching of the
alarm.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/AlarmManager#setAndAllowWhileIdle(int,%20long,%20android.app.PendingIntent)" title="Reference documentation">Java documentation for <code>android.app.AlarmManager.setAndAllowWhileIdle(int, long, android.app.PendingIntent)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
</Docs>
</Member>
<Member MemberName="SetExact">
<MemberSignature Language="C#" Value="public virtual void SetExact (Android.App.AlarmType type, long triggerAtMillis, Android.App.PendingIntent operation);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void SetExact(valuetype Android.App.AlarmType type, int64 triggerAtMillis, class Android.App.PendingIntent operation) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.App.AlarmManager.SetExact(Android.App.AlarmType,System.Int64,Android.App.PendingIntent)" />
<MemberSignature Language="F#" Value="abstract member SetExact : Android.App.AlarmType * int64 * Android.App.PendingIntent -> unit
override this.SetExact : Android.App.AlarmType * int64 * Android.App.PendingIntent -> unit" Usage="alarmManager.SetExact (type, triggerAtMillis, operation)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("setExact", "(IJLandroid/app/PendingIntent;)V", "GetSetExact_IJLandroid_app_PendingIntent_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("setExact", "(IJLandroid/app/PendingIntent;)V", "GetSetExact_IJLandroid_app_PendingIntent_Handler")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.RequiresPermission("android.permission.SCHEDULE_EXACT_ALARM")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.RequiresPermission("android.permission.SCHEDULE_EXACT_ALARM")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="type" Type="Android.App.AlarmType">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="triggerAtMillis" Type="System.Int64" />
<Parameter Name="operation" Type="Android.App.PendingIntent" />
</Parameters>
<Docs>
<param name="type">type of alarm.</param>
<param name="triggerAtMillis">time in milliseconds that the alarm should go
off, using the appropriate clock (depending on the alarm type).</param>
<param name="operation">Action to perform when the alarm goes off;