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
/
LauncherApps.xml
1661 lines (1658 loc) · 129 KB
/
LauncherApps.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="LauncherApps" FullName="Android.Content.PM.LauncherApps">
<TypeSignature Language="C#" Value="public class LauncherApps : Java.Lang.Object" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi beforefieldinit LauncherApps extends Java.Lang.Object" />
<TypeSignature Language="DocId" Value="T:Android.Content.PM.LauncherApps" />
<TypeSignature Language="F#" Value="type LauncherApps = 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/content/pm/LauncherApps", DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/content/pm/LauncherApps", DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="21">
<summary>Class for retrieving a list of launchable activities for the current user and any associated
managed profiles that are visible to the current user, which can be retrieved with
<c>#getProfiles</c>.</summary>
<remarks>
<para>Class for retrieving a list of launchable activities for the current user and any associated
managed profiles that are visible to the current user, which can be retrieved with
<c>#getProfiles</c>. This is mainly for use by launchers.
Apps can be queried for each user profile.
Since the PackageManager will not deliver package broadcasts for other profiles, you can register
for package changes here.</para>
<para>To watch for managed profiles being added or removed, register for the following broadcasts:
<c>Intent#ACTION_MANAGED_PROFILE_ADDED</c> and <c>Intent#ACTION_MANAGED_PROFILE_REMOVED</c>.</para>
<para>Note as of Android O, apps on a managed profile are no longer allowed to access apps on the
main profile. Apps can only access profiles returned by <c>#getProfiles()</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps</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>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected LauncherApps (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.Content.PM.LauncherApps.#ctor(System.IntPtr,Android.Runtime.JniHandleOwnership)" />
<MemberSignature Language="F#" Value="new Android.Content.PM.LauncherApps : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.PM.LauncherApps" Usage="new Android.Content.PM.LauncherApps (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="ActionConfirmPinAppwidget">
<MemberSignature Language="C#" Value="public const string ActionConfirmPinAppwidget;" />
<MemberSignature Language="ILAsm" Value=".field public static literal string ActionConfirmPinAppwidget" />
<MemberSignature Language="DocId" Value="F:Android.Content.PM.LauncherApps.ActionConfirmPinAppwidget" />
<MemberSignature Language="F#" Value="val mutable ActionConfirmPinAppwidget : string" Usage="Android.Content.PM.LauncherApps.ActionConfirmPinAppwidget" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("ACTION_CONFIRM_PIN_APPWIDGET", ApiSince=26)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("ACTION_CONFIRM_PIN_APPWIDGET", ApiSince=26)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android26.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android26.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Activity Action: For the default launcher to show the confirmation dialog to create
a pinned app widget.</summary>
<remarks>
<para>Activity Action: For the default launcher to show the confirmation dialog to create
a pinned app widget.</para>
<para>See the <c>android.appwidget.AppWidgetManager#requestPinAppWidget</c> javadoc for
details.</para>
<para>Use <c>#getPinItemRequest(Intent)</c> to get a <c>PinItemRequest</c> object,
and call <c>PinItemRequest#accept(Bundle)</c>
if the user accepts. If the user doesn't accept, no further action is required.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#ACTION_CONFIRM_PIN_APPWIDGET" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.ACTION_CONFIRM_PIN_APPWIDGET</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="ActionConfirmPinShortcut">
<MemberSignature Language="C#" Value="public const string ActionConfirmPinShortcut;" />
<MemberSignature Language="ILAsm" Value=".field public static literal string ActionConfirmPinShortcut" />
<MemberSignature Language="DocId" Value="F:Android.Content.PM.LauncherApps.ActionConfirmPinShortcut" />
<MemberSignature Language="F#" Value="val mutable ActionConfirmPinShortcut : string" Usage="Android.Content.PM.LauncherApps.ActionConfirmPinShortcut" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("ACTION_CONFIRM_PIN_SHORTCUT", ApiSince=26)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("ACTION_CONFIRM_PIN_SHORTCUT", ApiSince=26)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android26.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android26.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>Activity Action: For the default launcher to show the confirmation dialog to create
a pinned shortcut.</summary>
<remarks>
<para>Activity Action: For the default launcher to show the confirmation dialog to create
a pinned shortcut.</para>
<para>See the <c>ShortcutManager</c> javadoc for details.</para>
<para>Use <c>#getPinItemRequest(Intent)</c> to get a <c>PinItemRequest</c> object,
and call <c>PinItemRequest#accept(Bundle)</c>
if the user accepts. If the user doesn't accept, no further action is required.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#ACTION_CONFIRM_PIN_SHORTCUT" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.ACTION_CONFIRM_PIN_SHORTCUT</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="AllPackageInstallerSessions">
<MemberSignature Language="C#" Value="public virtual System.Collections.Generic.IList<Android.Content.PM.PackageInstaller.SessionInfo> AllPackageInstallerSessions { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Collections.Generic.IList`1<class Android.Content.PM.PackageInstaller/SessionInfo> AllPackageInstallerSessions" />
<MemberSignature Language="DocId" Value="P:Android.Content.PM.LauncherApps.AllPackageInstallerSessions" />
<MemberSignature Language="F#" Value="member this.AllPackageInstallerSessions : System.Collections.Generic.IList<Android.Content.PM.PackageInstaller.SessionInfo>" Usage="Android.Content.PM.LauncherApps.AllPackageInstallerSessions" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android29.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android29.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("getAllPackageInstallerSessions", "()Ljava/util/List;", "GetGetAllPackageInstallerSessionsHandler", ApiSince=29)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("getAllPackageInstallerSessions", "()Ljava/util/List;", "GetGetAllPackageInstallerSessionsHandler", ApiSince=29)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.Generic.IList<Android.Content.PM.PackageInstaller+SessionInfo></ReturnType>
</ReturnValue>
<Docs>
<summary>Return list of all known install sessions in this user and managed profiles, regardless
of the installer.</summary>
<value>To be added.</value>
<remarks>
<para>Return list of all known install sessions in this user and managed profiles, regardless
of the installer. Callers need to either declare &lt;queries&gt; element with the specific
package name in the app's manifest, have the android.permission.QUERY_ALL_PACKAGES, or be
the session owner to retrieve these details.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#getAllPackageInstallerSessions()" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.getAllPackageInstallerSessions()</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="ExtraPinItemRequest">
<MemberSignature Language="C#" Value="public const string ExtraPinItemRequest;" />
<MemberSignature Language="ILAsm" Value=".field public static literal string ExtraPinItemRequest" />
<MemberSignature Language="DocId" Value="F:Android.Content.PM.LauncherApps.ExtraPinItemRequest" />
<MemberSignature Language="F#" Value="val mutable ExtraPinItemRequest : string" Usage="Android.Content.PM.LauncherApps.ExtraPinItemRequest" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("EXTRA_PIN_ITEM_REQUEST", ApiSince=26)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("EXTRA_PIN_ITEM_REQUEST", ApiSince=26)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android26.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android26.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.String</ReturnType>
</ReturnValue>
<Docs>
<summary>An extra for <c>#ACTION_CONFIRM_PIN_SHORTCUT</c> &amp; <c>#ACTION_CONFIRM_PIN_APPWIDGET</c>
containing a <c>PinItemRequest</c> of appropriate type asked to pin.</summary>
<remarks>
<para>An extra for <c>#ACTION_CONFIRM_PIN_SHORTCUT</c> &amp; <c>#ACTION_CONFIRM_PIN_APPWIDGET</c>
containing a <c>PinItemRequest</c> of appropriate type asked to pin.</para>
<para>A helper function <c>#getPinItemRequest(Intent)</c> can be used
instead of using this constant directly.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#EXTRA_PIN_ITEM_REQUEST" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.EXTRA_PIN_ITEM_REQUEST</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="GetActivityList">
<MemberSignature Language="C#" Value="public virtual System.Collections.Generic.IList<Android.Content.PM.LauncherActivityInfo>? GetActivityList (string? packageName, Android.OS.UserHandle? user);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Collections.Generic.IList`1<class Android.Content.PM.LauncherActivityInfo> GetActivityList(string packageName, class Android.OS.UserHandle user) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.PM.LauncherApps.GetActivityList(System.String,Android.OS.UserHandle)" />
<MemberSignature Language="F#" Value="abstract member GetActivityList : string * Android.OS.UserHandle -> System.Collections.Generic.IList<Android.Content.PM.LauncherActivityInfo>
override this.GetActivityList : string * Android.OS.UserHandle -> System.Collections.Generic.IList<Android.Content.PM.LauncherActivityInfo>" Usage="launcherApps.GetActivityList (packageName, user)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getActivityList", "(Ljava/lang/String;Landroid/os/UserHandle;)Ljava/util/List;", "GetGetActivityList_Ljava_lang_String_Landroid_os_UserHandle_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getActivityList", "(Ljava/lang/String;Landroid/os/UserHandle;)Ljava/util/List;", "GetGetActivityList_Ljava_lang_String_Landroid_os_UserHandle_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.Generic.IList<Android.Content.PM.LauncherActivityInfo></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="packageName" Type="System.String" />
<Parameter Name="user" Type="Android.OS.UserHandle" />
</Parameters>
<Docs>
<param name="packageName">The specific package to query. If null, it checks all installed packages
in the profile.</param>
<param name="user">The UserHandle of the profile.</param>
<summary>Retrieves a list of activities that specify <c>Intent#ACTION_MAIN</c> and
<c>Intent#CATEGORY_LAUNCHER</c>, across all apps, for a specified user.</summary>
<returns>List of launchable activities. Can be an empty list but will not be null.</returns>
<remarks>
<para>Retrieves a list of activities that specify <c>Intent#ACTION_MAIN</c> and
<c>Intent#CATEGORY_LAUNCHER</c>, across all apps, for a specified user. If an app doesn't
have any activities that specify <c>ACTION_MAIN</c> or <c>CATEGORY_LAUNCHER</c>,
the system adds a synthesized activity to the list. This synthesized activity represents the
app's details page within system settings.
<p class="note"><b>Note: </b>It's possible for system apps, such as app stores, to prevent
the system from adding synthesized activities to the returned list.</p></para>
<para>As of Android Q, at least
one of the app's activities or synthesized activities appears in the returned list unless the
app satisfies at least one of the following conditions:</para>
<para><ul>
<li>The app is a system app.</li>
<li>The app doesn't request any permissions.
</li>
<li>The app doesn't have a <em>launcher activity</em> that is enabled by default. A launcher
activity has an intent containing the <c>ACTION_MAIN</c> action and the
<c>CATEGORY_LAUNCHER</c> category.</li>
</ul></para>
<para>Additionally, the system hides synthesized activities for some or all apps in the
following enterprise-related cases:</para>
<para><ul>
<li>If the device is a
<see href="https://developers.google.com/android/work/overview#company-owned-devices-for-knowledge-workers">fully
managed device</see>, no synthesized activities for any app appear in the returned list.</li>
<li>If the current user has a
<see href="https://developers.google.com/android/work/overview#employee-owned-devices-byod">work
profile</see>, no synthesized activities for the user's work apps appear in the returned
list.</li>
</ul></para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#getActivityList(java.lang.String,%20android.os.UserHandle)" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.getActivityList(java.lang.String, android.os.UserHandle)</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="GetApplicationInfo">
<MemberSignature Language="C#" Value="public virtual Android.Content.PM.ApplicationInfo? GetApplicationInfo (string packageName, Android.Content.PM.PackageInfoFlags flags, Android.OS.UserHandle user);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Android.Content.PM.ApplicationInfo GetApplicationInfo(string packageName, valuetype Android.Content.PM.PackageInfoFlags flags, class Android.OS.UserHandle user) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.PM.LauncherApps.GetApplicationInfo(System.String,Android.Content.PM.PackageInfoFlags,Android.OS.UserHandle)" />
<MemberSignature Language="F#" Value="abstract member GetApplicationInfo : string * Android.Content.PM.PackageInfoFlags * Android.OS.UserHandle -> Android.Content.PM.ApplicationInfo
override this.GetApplicationInfo : string * Android.Content.PM.PackageInfoFlags * Android.OS.UserHandle -> Android.Content.PM.ApplicationInfo" Usage="launcherApps.GetApplicationInfo (packageName, flags, user)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getApplicationInfo", "(Ljava/lang/String;ILandroid/os/UserHandle;)Landroid/content/pm/ApplicationInfo;", "GetGetApplicationInfo_Ljava_lang_String_ILandroid_os_UserHandle_Handler", ApiSince=26)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getApplicationInfo", "(Ljava/lang/String;ILandroid/os/UserHandle;)Landroid/content/pm/ApplicationInfo;", "GetGetApplicationInfo_Ljava_lang_String_ILandroid_os_UserHandle_Handler", ApiSince=26)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android26.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android26.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Content.PM.ApplicationInfo</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="packageName" Type="System.String" />
<Parameter Name="flags" Type="Android.Content.PM.PackageInfoFlags">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="user" Type="Android.OS.UserHandle" />
</Parameters>
<Docs>
<param name="packageName">The package name of the application</param>
<param name="flags">Additional option flags <c>PackageManager#getApplicationInfo</c></param>
<param name="user">The UserHandle of the profile.</param>
<summary>Returns <c>ApplicationInfo</c> about an application installed for a specific user profile.</summary>
<returns>
<c>ApplicationInfo</c> containing information about the package. Returns
<c>null</c> if the package isn't installed for the given profile, or the profile
isn't enabled.</returns>
<remarks>
<para>Returns <c>ApplicationInfo</c> about an application installed for a specific user profile.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#getApplicationInfo(java.lang.String,%20int,%20android.os.UserHandle)" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.getApplicationInfo(java.lang.String, int, android.os.UserHandle)</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="GetPinItemRequest">
<MemberSignature Language="C#" Value="public virtual Android.Content.PM.LauncherApps.PinItemRequest? GetPinItemRequest (Android.Content.Intent? intent);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Android.Content.PM.LauncherApps/PinItemRequest GetPinItemRequest(class Android.Content.Intent intent) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.PM.LauncherApps.GetPinItemRequest(Android.Content.Intent)" />
<MemberSignature Language="F#" Value="abstract member GetPinItemRequest : Android.Content.Intent -> Android.Content.PM.LauncherApps.PinItemRequest
override this.GetPinItemRequest : Android.Content.Intent -> Android.Content.PM.LauncherApps.PinItemRequest" Usage="launcherApps.GetPinItemRequest intent" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getPinItemRequest", "(Landroid/content/Intent;)Landroid/content/pm/LauncherApps$PinItemRequest;", "GetGetPinItemRequest_Landroid_content_Intent_Handler", ApiSince=26)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getPinItemRequest", "(Landroid/content/Intent;)Landroid/content/pm/LauncherApps$PinItemRequest;", "GetGetPinItemRequest_Landroid_content_Intent_Handler", ApiSince=26)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android26.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android26.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Content.PM.LauncherApps+PinItemRequest</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="intent" Type="Android.Content.Intent" />
</Parameters>
<Docs>
<param name="intent">To be added.</param>
<summary>A helper method to extract a <c>PinItemRequest</c> set to
the <c>#EXTRA_PIN_ITEM_REQUEST</c> extra.</summary>
<returns>To be added.</returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#getPinItemRequest(android.content.Intent)" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.getPinItemRequest(android.content.Intent)</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="GetShortcutBadgedIconDrawable">
<MemberSignature Language="C#" Value="public virtual Android.Graphics.Drawables.Drawable? GetShortcutBadgedIconDrawable (Android.Content.PM.ShortcutInfo? shortcut, int density);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Android.Graphics.Drawables.Drawable GetShortcutBadgedIconDrawable(class Android.Content.PM.ShortcutInfo shortcut, int32 density) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.PM.LauncherApps.GetShortcutBadgedIconDrawable(Android.Content.PM.ShortcutInfo,System.Int32)" />
<MemberSignature Language="F#" Value="abstract member GetShortcutBadgedIconDrawable : Android.Content.PM.ShortcutInfo * int -> Android.Graphics.Drawables.Drawable
override this.GetShortcutBadgedIconDrawable : Android.Content.PM.ShortcutInfo * int -> Android.Graphics.Drawables.Drawable" Usage="launcherApps.GetShortcutBadgedIconDrawable (shortcut, density)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getShortcutBadgedIconDrawable", "(Landroid/content/pm/ShortcutInfo;I)Landroid/graphics/drawable/Drawable;", "GetGetShortcutBadgedIconDrawable_Landroid_content_pm_ShortcutInfo_IHandler", ApiSince=25)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getShortcutBadgedIconDrawable", "(Landroid/content/pm/ShortcutInfo;I)Landroid/graphics/drawable/Drawable;", "GetGetShortcutBadgedIconDrawable_Landroid_content_pm_ShortcutInfo_IHandler", ApiSince=25)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android25.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android25.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.Drawables.Drawable</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="shortcut" Type="Android.Content.PM.ShortcutInfo" />
<Parameter Name="density" Type="System.Int32" />
</Parameters>
<Docs>
<param name="shortcut">To be added.</param>
<param name="density">Optional density for the icon, or 0 to use the default density. Use</param>
<summary>Returns the shortcut icon with badging appropriate for the profile.</summary>
<returns>A badged icon for the shortcut.</returns>
<remarks>
<para>Returns the shortcut icon with badging appropriate for the profile.</para>
<para>The calling launcher application must be allowed to access the shortcut information,
as defined in <c>#hasShortcutHostPermission()</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#getShortcutBadgedIconDrawable(android.content.pm.ShortcutInfo,%20int)" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.getShortcutBadgedIconDrawable(android.content.pm.ShortcutInfo, int)</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="GetShortcutConfigActivityIntent">
<MemberSignature Language="C#" Value="public virtual Android.Content.IntentSender? GetShortcutConfigActivityIntent (Android.Content.PM.LauncherActivityInfo info);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Android.Content.IntentSender GetShortcutConfigActivityIntent(class Android.Content.PM.LauncherActivityInfo info) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.PM.LauncherApps.GetShortcutConfigActivityIntent(Android.Content.PM.LauncherActivityInfo)" />
<MemberSignature Language="F#" Value="abstract member GetShortcutConfigActivityIntent : Android.Content.PM.LauncherActivityInfo -> Android.Content.IntentSender
override this.GetShortcutConfigActivityIntent : Android.Content.PM.LauncherActivityInfo -> Android.Content.IntentSender" Usage="launcherApps.GetShortcutConfigActivityIntent info" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getShortcutConfigActivityIntent", "(Landroid/content/pm/LauncherActivityInfo;)Landroid/content/IntentSender;", "GetGetShortcutConfigActivityIntent_Landroid_content_pm_LauncherActivityInfo_Handler", ApiSince=26)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getShortcutConfigActivityIntent", "(Landroid/content/pm/LauncherActivityInfo;)Landroid/content/IntentSender;", "GetGetShortcutConfigActivityIntent_Landroid_content_pm_LauncherActivityInfo_Handler", ApiSince=26)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android26.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android26.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Content.IntentSender</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="info" Type="Android.Content.PM.LauncherActivityInfo" />
</Parameters>
<Docs>
<param name="info">a configuration activity returned by <c>#getShortcutConfigActivityList</c></param>
<summary>Returns an intent sender which can be used to start the configure activity for creating
custom shortcuts.</summary>
<returns>To be added.</returns>
<remarks>
<para>Returns an intent sender which can be used to start the configure activity for creating
custom shortcuts. Use this method if the provider is in another profile as you are not
allowed to start an activity in another profile.</para>
<para>The caller should receive <c>PinItemRequest</c> in onActivityResult on
<c>android.app.Activity#RESULT_OK</c>.</para>
<para>Callers must be allowed to access the shortcut information, as defined in <c>#hasShortcutHostPermission()</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#getShortcutConfigActivityIntent(android.content.pm.LauncherActivityInfo)" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.getShortcutConfigActivityIntent(android.content.pm.LauncherActivityInfo)</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="GetShortcutConfigActivityList">
<MemberSignature Language="C#" Value="public virtual System.Collections.Generic.IList<Android.Content.PM.LauncherActivityInfo>? GetShortcutConfigActivityList (string? packageName, Android.OS.UserHandle user);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Collections.Generic.IList`1<class Android.Content.PM.LauncherActivityInfo> GetShortcutConfigActivityList(string packageName, class Android.OS.UserHandle user) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.PM.LauncherApps.GetShortcutConfigActivityList(System.String,Android.OS.UserHandle)" />
<MemberSignature Language="F#" Value="abstract member GetShortcutConfigActivityList : string * Android.OS.UserHandle -> System.Collections.Generic.IList<Android.Content.PM.LauncherActivityInfo>
override this.GetShortcutConfigActivityList : string * Android.OS.UserHandle -> System.Collections.Generic.IList<Android.Content.PM.LauncherActivityInfo>" Usage="launcherApps.GetShortcutConfigActivityList (packageName, user)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getShortcutConfigActivityList", "(Ljava/lang/String;Landroid/os/UserHandle;)Ljava/util/List;", "GetGetShortcutConfigActivityList_Ljava_lang_String_Landroid_os_UserHandle_Handler", ApiSince=26)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getShortcutConfigActivityList", "(Ljava/lang/String;Landroid/os/UserHandle;)Ljava/util/List;", "GetGetShortcutConfigActivityList_Ljava_lang_String_Landroid_os_UserHandle_Handler", ApiSince=26)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android26.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android26.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.Generic.IList<Android.Content.PM.LauncherActivityInfo></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="packageName" Type="System.String" />
<Parameter Name="user" Type="Android.OS.UserHandle" />
</Parameters>
<Docs>
<param name="packageName">The specific package to query. If null, it checks all installed packages
in the profile.</param>
<param name="user">The UserHandle of the profile.</param>
<summary>Retrieves a list of config activities for creating <c>ShortcutInfo</c>.</summary>
<returns>List of config activities. Can be an empty list but will not be null.</returns>
<remarks>
<para>Retrieves a list of config activities for creating <c>ShortcutInfo</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#getShortcutConfigActivityList(java.lang.String,%20android.os.UserHandle)" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.getShortcutConfigActivityList(java.lang.String, android.os.UserHandle)</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="GetShortcutIconDrawable">
<MemberSignature Language="C#" Value="public virtual Android.Graphics.Drawables.Drawable? GetShortcutIconDrawable (Android.Content.PM.ShortcutInfo shortcut, int density);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Android.Graphics.Drawables.Drawable GetShortcutIconDrawable(class Android.Content.PM.ShortcutInfo shortcut, int32 density) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.PM.LauncherApps.GetShortcutIconDrawable(Android.Content.PM.ShortcutInfo,System.Int32)" />
<MemberSignature Language="F#" Value="abstract member GetShortcutIconDrawable : Android.Content.PM.ShortcutInfo * int -> Android.Graphics.Drawables.Drawable
override this.GetShortcutIconDrawable : Android.Content.PM.ShortcutInfo * int -> Android.Graphics.Drawables.Drawable" Usage="launcherApps.GetShortcutIconDrawable (shortcut, density)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getShortcutIconDrawable", "(Landroid/content/pm/ShortcutInfo;I)Landroid/graphics/drawable/Drawable;", "GetGetShortcutIconDrawable_Landroid_content_pm_ShortcutInfo_IHandler", ApiSince=25)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getShortcutIconDrawable", "(Landroid/content/pm/ShortcutInfo;I)Landroid/graphics/drawable/Drawable;", "GetGetShortcutIconDrawable_Landroid_content_pm_ShortcutInfo_IHandler", ApiSince=25)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android25.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android25.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Graphics.Drawables.Drawable</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="shortcut" Type="Android.Content.PM.ShortcutInfo" />
<Parameter Name="density" Type="System.Int32" />
</Parameters>
<Docs>
<param name="shortcut">To be added.</param>
<param name="density">The preferred density of the icon, zero for default density. Use
density DPI values from <c>DisplayMetrics</c>.</param>
<summary>Returns the icon for this shortcut, without any badging for the profile.</summary>
<returns>The drawable associated with the shortcut.</returns>
<remarks>
<para>Returns the icon for this shortcut, without any badging for the profile.</para>
<para>The calling launcher application must be allowed to access the shortcut information,
as defined in <c>#hasShortcutHostPermission()</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#getShortcutIconDrawable(android.content.pm.ShortcutInfo,%20int)" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.getShortcutIconDrawable(android.content.pm.ShortcutInfo, int)</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="GetShortcutIntent">
<MemberSignature Language="C#" Value="public virtual Android.App.PendingIntent? GetShortcutIntent (string packageName, string shortcutId, Android.OS.Bundle? opts, Android.OS.UserHandle user);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Android.App.PendingIntent GetShortcutIntent(string packageName, string shortcutId, class Android.OS.Bundle opts, class Android.OS.UserHandle user) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.PM.LauncherApps.GetShortcutIntent(System.String,System.String,Android.OS.Bundle,Android.OS.UserHandle)" />
<MemberSignature Language="F#" Value="abstract member GetShortcutIntent : string * string * Android.OS.Bundle * Android.OS.UserHandle -> Android.App.PendingIntent
override this.GetShortcutIntent : string * string * Android.OS.Bundle * Android.OS.UserHandle -> Android.App.PendingIntent" Usage="launcherApps.GetShortcutIntent (packageName, shortcutId, opts, user)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getShortcutIntent", "(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;Landroid/os/UserHandle;)Landroid/app/PendingIntent;", "GetGetShortcutIntent_Ljava_lang_String_Ljava_lang_String_Landroid_os_Bundle_Landroid_os_UserHandle_Handler", ApiSince=31)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getShortcutIntent", "(Ljava/lang/String;Ljava/lang/String;Landroid/os/Bundle;Landroid/os/UserHandle;)Landroid/app/PendingIntent;", "GetGetShortcutIntent_Ljava_lang_String_Ljava_lang_String_Landroid_os_Bundle_Landroid_os_UserHandle_Handler", 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>Android.App.PendingIntent</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="packageName" Type="System.String" />
<Parameter Name="shortcutId" Type="System.String" />
<Parameter Name="opts" Type="Android.OS.Bundle" />
<Parameter Name="user" Type="Android.OS.UserHandle" />
</Parameters>
<Docs>
<param name="packageName">The packageName of the shortcut</param>
<param name="shortcutId">The id of the shortcut</param>
<param name="opts">This parameter is no longer supported</param>
<param name="user">The UserHandle of the profile</param>
<summary>Returns PendingIntent associated with specified shortcut.</summary>
<returns>To be added.</returns>
<remarks>
<para>Returns PendingIntent associated with specified shortcut.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#getShortcutIntent(java.lang.String,%20java.lang.String,%20android.os.Bundle,%20android.os.UserHandle)" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.getShortcutIntent(java.lang.String, java.lang.String, android.os.Bundle, android.os.UserHandle)</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="GetShortcuts">
<MemberSignature Language="C#" Value="public virtual System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo>? GetShortcuts (Android.Content.PM.LauncherApps.ShortcutQuery query, Android.OS.UserHandle user);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class System.Collections.Generic.IList`1<class Android.Content.PM.ShortcutInfo> GetShortcuts(class Android.Content.PM.LauncherApps/ShortcutQuery query, class Android.OS.UserHandle user) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.PM.LauncherApps.GetShortcuts(Android.Content.PM.LauncherApps.ShortcutQuery,Android.OS.UserHandle)" />
<MemberSignature Language="F#" Value="abstract member GetShortcuts : Android.Content.PM.LauncherApps.ShortcutQuery * Android.OS.UserHandle -> System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo>
override this.GetShortcuts : Android.Content.PM.LauncherApps.ShortcutQuery * Android.OS.UserHandle -> System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo>" Usage="launcherApps.GetShortcuts (query, user)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getShortcuts", "(Landroid/content/pm/LauncherApps$ShortcutQuery;Landroid/os/UserHandle;)Ljava/util/List;", "GetGetShortcuts_Landroid_content_pm_LauncherApps_ShortcutQuery_Landroid_os_UserHandle_Handler", ApiSince=25)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getShortcuts", "(Landroid/content/pm/LauncherApps$ShortcutQuery;Landroid/os/UserHandle;)Ljava/util/List;", "GetGetShortcuts_Landroid_content_pm_LauncherApps_ShortcutQuery_Landroid_os_UserHandle_Handler", ApiSince=25)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android25.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android25.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Collections.Generic.IList<Android.Content.PM.ShortcutInfo></ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="query" Type="Android.Content.PM.LauncherApps+ShortcutQuery" />
<Parameter Name="user" Type="Android.OS.UserHandle" />
</Parameters>
<Docs>
<param name="query">result includes shortcuts matching this query.</param>
<param name="user">The UserHandle of the profile.</param>
<summary>Returns <c>ShortcutInfo</c>s that match <c>query</c>.</summary>
<returns>the IDs of <c>ShortcutInfo</c>s that match the query.</returns>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#getShortcuts(android.content.pm.ShortcutQuery,%20android.os.UserHandle)" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.getShortcuts(android.content.pm.ShortcutQuery, android.os.UserHandle)</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="GetSuspendedPackageLauncherExtras">
<MemberSignature Language="C#" Value="public virtual Android.OS.Bundle? GetSuspendedPackageLauncherExtras (string? packageName, Android.OS.UserHandle? user);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Android.OS.Bundle GetSuspendedPackageLauncherExtras(string packageName, class Android.OS.UserHandle user) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.PM.LauncherApps.GetSuspendedPackageLauncherExtras(System.String,Android.OS.UserHandle)" />
<MemberSignature Language="F#" Value="abstract member GetSuspendedPackageLauncherExtras : string * Android.OS.UserHandle -> Android.OS.Bundle
override this.GetSuspendedPackageLauncherExtras : string * Android.OS.UserHandle -> Android.OS.Bundle" Usage="launcherApps.GetSuspendedPackageLauncherExtras (packageName, user)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("getSuspendedPackageLauncherExtras", "(Ljava/lang/String;Landroid/os/UserHandle;)Landroid/os/Bundle;", "GetGetSuspendedPackageLauncherExtras_Ljava_lang_String_Landroid_os_UserHandle_Handler", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("getSuspendedPackageLauncherExtras", "(Ljava/lang/String;Landroid/os/UserHandle;)Landroid/os/Bundle;", "GetGetSuspendedPackageLauncherExtras_Ljava_lang_String_Landroid_os_UserHandle_Handler", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.OS.Bundle</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="packageName" Type="System.String" />
<Parameter Name="user" Type="Android.OS.UserHandle" />
</Parameters>
<Docs>
<param name="packageName">The package for which to fetch the launcher extras.</param>
<param name="user">The <c>UserHandle</c> of the profile.</param>
<summary>Gets the launcher extras supplied to the system when the given package was suspended via
<c>PackageManager#setPackagesSuspended(String[], boolean, PersistableBundle,
PersistableBundle, String)</c>.</summary>
<returns>A <c>Bundle</c> of launcher extras. Or <c>null</c> if the package is not currently
suspended.</returns>
<remarks>
<para>Gets the launcher extras supplied to the system when the given package was suspended via
<c>PackageManager#setPackagesSuspended(String[], boolean, PersistableBundle,
PersistableBundle, String)</c>.</para>
<para>The contents of this <c>Bundle</c> are supposed to be a contract between the suspending
app and the launcher.</para>
<para>Note: This just returns whatever extras were provided to the system, <em>which might
even be <c>null</c>.</em></para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#getSuspendedPackageLauncherExtras(java.lang.String,%20android.os.UserHandle)" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.getSuspendedPackageLauncherExtras(java.lang.String, android.os.UserHandle)</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="HasShortcutHostPermission">
<MemberSignature Language="C#" Value="public virtual bool HasShortcutHostPermission { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool HasShortcutHostPermission" />
<MemberSignature Language="DocId" Value="P:Android.Content.PM.LauncherApps.HasShortcutHostPermission" />
<MemberSignature Language="F#" Value="member this.HasShortcutHostPermission : bool" Usage="Android.Content.PM.LauncherApps.HasShortcutHostPermission" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android25.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android25.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("hasShortcutHostPermission", "()Z", "GetHasShortcutHostPermissionHandler", ApiSince=25)]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("hasShortcutHostPermission", "()Z", "GetHasShortcutHostPermissionHandler", ApiSince=25)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns whether the caller can access the shortcut information.</summary>
<value>To be added.</value>
<remarks>
<para>Returns whether the caller can access the shortcut information. Access is currently
available to:
<ul>
<li>The current launcher (or default launcher if there is no set current launcher).</li>
<li>The currently active voice interaction service.</li>
</ul></para>
<para>Note when this method returns <c>false</c>, it may be a temporary situation because
the user is trying a new launcher application. The user may decide to change the default
launcher back to the calling application again, so even if a launcher application loses
this permission, it does <b>not</b> have to purge pinned shortcut information.
If the calling launcher application contains pinned shortcuts, they will still work,
even though the caller no longer has the shortcut host permission.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#hasShortcutHostPermission()" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.hasShortcutHostPermission()</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="IsActivityEnabled">
<MemberSignature Language="C#" Value="public virtual bool IsActivityEnabled (Android.Content.ComponentName? component, Android.OS.UserHandle? user);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool IsActivityEnabled(class Android.Content.ComponentName component, class Android.OS.UserHandle user) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.PM.LauncherApps.IsActivityEnabled(Android.Content.ComponentName,Android.OS.UserHandle)" />
<MemberSignature Language="F#" Value="abstract member IsActivityEnabled : Android.Content.ComponentName * Android.OS.UserHandle -> bool
override this.IsActivityEnabled : Android.Content.ComponentName * Android.OS.UserHandle -> bool" Usage="launcherApps.IsActivityEnabled (component, user)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("isActivityEnabled", "(Landroid/content/ComponentName;Landroid/os/UserHandle;)Z", "GetIsActivityEnabled_Landroid_content_ComponentName_Landroid_os_UserHandle_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("isActivityEnabled", "(Landroid/content/ComponentName;Landroid/os/UserHandle;)Z", "GetIsActivityEnabled_Landroid_content_ComponentName_Landroid_os_UserHandle_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="component" Type="Android.Content.ComponentName" />
<Parameter Name="user" Type="Android.OS.UserHandle" />
</Parameters>
<Docs>
<param name="component">The activity to check.</param>
<param name="user">The UserHandle of the profile.</param>
<summary>Checks if the activity exists and it enabled for a profile.</summary>
<returns>true if the activity exists and is enabled.</returns>
<remarks>
<para>Checks if the activity exists and it enabled for a profile.</para>
<para>The activity may still not be exported, in which case <c>#startMainActivity</c> will
throw a <c>SecurityException</c> unless the caller has the same UID as the target app's.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#isActivityEnabled(android.content.ComponentName,%20android.os.UserHandle)" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.isActivityEnabled(android.content.ComponentName, android.os.UserHandle)</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="IsPackageEnabled">
<MemberSignature Language="C#" Value="public virtual bool IsPackageEnabled (string? packageName, Android.OS.UserHandle? user);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance bool IsPackageEnabled(string packageName, class Android.OS.UserHandle user) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.PM.LauncherApps.IsPackageEnabled(System.String,Android.OS.UserHandle)" />
<MemberSignature Language="F#" Value="abstract member IsPackageEnabled : string * Android.OS.UserHandle -> bool
override this.IsPackageEnabled : string * Android.OS.UserHandle -> bool" Usage="launcherApps.IsPackageEnabled (packageName, user)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("isPackageEnabled", "(Ljava/lang/String;Landroid/os/UserHandle;)Z", "GetIsPackageEnabled_Ljava_lang_String_Landroid_os_UserHandle_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("isPackageEnabled", "(Ljava/lang/String;Landroid/os/UserHandle;)Z", "GetIsPackageEnabled_Ljava_lang_String_Landroid_os_UserHandle_Handler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="packageName" Type="System.String" />
<Parameter Name="user" Type="Android.OS.UserHandle" />
</Parameters>
<Docs>
<param name="packageName">The package to check.</param>
<param name="user">The UserHandle of the profile.</param>
<summary>Checks if the package is installed and enabled for a profile.</summary>
<returns>true if the package exists and is enabled.</returns>
<remarks>
<para>Checks if the package is installed and enabled for a profile.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#isPackageEnabled(java.lang.String,%20android.os.UserHandle)" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.isPackageEnabled(java.lang.String, android.os.UserHandle)</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="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.Content.PM.LauncherApps.JniPeerMembers" />
<MemberSignature Language="F#" Value="member this.JniPeerMembers : Java.Interop.JniPeerMembers" Usage="Android.Content.PM.LauncherApps.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="PinShortcuts">
<MemberSignature Language="C#" Value="public virtual void PinShortcuts (string packageName, System.Collections.Generic.IList<string> shortcutIds, Android.OS.UserHandle user);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void PinShortcuts(string packageName, class System.Collections.Generic.IList`1<string> shortcutIds, class Android.OS.UserHandle user) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.PM.LauncherApps.PinShortcuts(System.String,System.Collections.Generic.IList{System.String},Android.OS.UserHandle)" />
<MemberSignature Language="F#" Value="abstract member PinShortcuts : string * System.Collections.Generic.IList<string> * Android.OS.UserHandle -> unit
override this.PinShortcuts : string * System.Collections.Generic.IList<string> * Android.OS.UserHandle -> unit" Usage="launcherApps.PinShortcuts (packageName, shortcutIds, user)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("pinShortcuts", "(Ljava/lang/String;Ljava/util/List;Landroid/os/UserHandle;)V", "GetPinShortcuts_Ljava_lang_String_Ljava_util_List_Landroid_os_UserHandle_Handler", ApiSince=25)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("pinShortcuts", "(Ljava/lang/String;Ljava/util/List;Landroid/os/UserHandle;)V", "GetPinShortcuts_Ljava_lang_String_Ljava_util_List_Landroid_os_UserHandle_Handler", ApiSince=25)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android25.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android25.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="packageName" Type="System.String" />
<Parameter Name="shortcutIds" Type="System.Collections.Generic.IList<System.String>" />
<Parameter Name="user" Type="Android.OS.UserHandle" />
</Parameters>
<Docs>
<param name="packageName">The target package name.</param>
<param name="shortcutIds">The IDs of the shortcut to be pinned.</param>
<param name="user">The UserHandle of the profile.</param>
<summary>Pin shortcuts on a package.</summary>
<remarks>
<para>Pin shortcuts on a package.</para>
<para>This API is <b>NOT</b> cumulative; this will replace all pinned shortcuts for the package.
However, different launchers may have different set of pinned shortcuts.</para>
<para>The calling launcher application must be allowed to access the shortcut information,
as defined in <c>#hasShortcutHostPermission()</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/pm/LauncherApps#pinShortcuts(java.lang.String,%20java.util.List%3Cjava.lang.String%3E,%20android.os.UserHandle)" title="Reference documentation">Java documentation for <code>android.content.pm.LauncherApps.pinShortcuts(java.lang.String, java.util.List<java.lang.String>, android.os.UserHandle)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the