-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathAppFunctionManager.xml
More file actions
557 lines (550 loc) Β· 41 KB
/
AppFunctionManager.xml
File metadata and controls
557 lines (550 loc) Β· 41 KB
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
<Type Name="AppFunctionManager" FullName="Android.App.AppFunctions.AppFunctionManager">
<TypeSignature Language="C#" Value="public sealed class AppFunctionManager : Java.Lang.Object" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi sealed beforefieldinit AppFunctionManager extends Java.Lang.Object" />
<TypeSignature Language="DocId" Value="T:Android.App.AppFunctions.AppFunctionManager" />
<TypeSignature Language="F#" Value="type AppFunctionManager = 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/appfunctions/AppFunctionManager", ApiSince=36, DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/app/appfunctions/AppFunctionManager", ApiSince=36, DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.Nullable(0)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.Nullable(0)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android36.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android36.0")>]</AttributeName>
</Attribute>
</Attributes>
<Docs>
<summary>Provides access to App Functions.</summary>
<remarks>
<para>Provides access to App Functions. App Functions is currently a
beta/experimental preview feature.</para>
<para>An app function is a piece of functionality that apps expose to the system for cross-app
orchestration.
<h3>Building App Functions</h3></para>
<para>Most developers should build app functions through the AppFunctions SDK. This SDK library
offers a more convenient and type-safe way to build app functions. The SDK provides predefined
function schemas for common use cases and associated data classes for function parameters and
return values. Apps only have to implement the provided interfaces. Internally, the SDK converts
these data classes into <c>ExecuteAppFunctionRequest#getParameters()</c> and <c>ExecuteAppFunctionResponse#getResultDocument()</c>.
<h3>Discovering App Functions</h3></para>
<para>When there is a package change or the device starts up, the metadata of available functions is
indexed on-device by <c>AppSearchManager</c>. AppSearch stores the indexed information as an
<c>AppFunctionStaticMetadata</c> document. This document contains the <c>functionIdentifier</c>
and the schema information that the app function implements. This allows other apps and the app
itself to discover these functions using the AppSearch search APIs. Visibility to this metadata
document is based on the packages that have visibility to the app providing the app functions.
AppFunction SDK provides a convenient way to achieve this and is the preferred method.
<h3>Executing App Functions</h3></para>
<para>To execute an app function, the caller app can retrieve the <c>functionIdentifier</c> from
the <c>AppFunctionStaticMetadata</c> document and use it to build an <c>ExecuteAppFunctionRequest</c>. Then, invoke <c>#executeAppFunction</c> with the request to execute
the app function. Callers need the <c>android.permission.EXECUTE_APP_FUNCTIONS</c> permission to
execute app functions from other apps. An app can always execute its own app functions and
doesn't need these permissions. AppFunction SDK provides a convenient way to achieve this and
is the preferred method.
<h3>Example</h3></para>
<para>An assistant app is trying to fulfill the user request "Save XYZ into my note". The assistant
app should first list all available app functions as <c>AppFunctionStaticMetadata</c> documents
from AppSearch. Then, it should identify an app function that implements the <c>CreateNote</c>
schema. Finally, the assistant app can invoke <c>#executeAppFunction</c> with the <c>functionIdentifier</c> of the chosen function.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/appfunctions/AppFunctionManager" title="Reference documentation">Java documentation for <code>android.app.appfunctions.AppFunctionManager</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="AppFunctionStateDefault">
<MemberSignature Language="C#" Value="public const Android.App.AppFunctions.AppFunctionState AppFunctionStateDefault = 0;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.App.AppFunctions.AppFunctionState AppFunctionStateDefault = (0)" />
<MemberSignature Language="DocId" Value="F:Android.App.AppFunctions.AppFunctionManager.AppFunctionStateDefault" />
<MemberSignature Language="F#" Value="val mutable AppFunctionStateDefault : Android.App.AppFunctions.AppFunctionState" Usage="Android.App.AppFunctions.AppFunctionManager.AppFunctionStateDefault" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("APP_FUNCTION_STATE_DEFAULT", ApiSince=36)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("APP_FUNCTION_STATE_DEFAULT", ApiSince=36)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.App.AppFunctions.AppFunctionState enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.App.AppFunctions.AppFunctionState enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android36.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android36.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.App.AppFunctions.AppFunctionState</ReturnType>
</ReturnValue>
<MemberValue>0</MemberValue>
<Docs>
<summary>The default state of the app function.</summary>
<remarks>
<para>The default state of the app function. Call <c>#setAppFunctionEnabled</c> with this to reset
enabled state to the default value.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/appfunctions/AppFunctionManager#APP_FUNCTION_STATE_DEFAULT" title="Reference documentation">Java documentation for <code>android.app.appfunctions.AppFunctionManager.APP_FUNCTION_STATE_DEFAULT</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="AppFunctionStateDisabled">
<MemberSignature Language="C#" Value="public const Android.App.AppFunctions.AppFunctionState AppFunctionStateDisabled = 2;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.App.AppFunctions.AppFunctionState AppFunctionStateDisabled = (2)" />
<MemberSignature Language="DocId" Value="F:Android.App.AppFunctions.AppFunctionManager.AppFunctionStateDisabled" />
<MemberSignature Language="F#" Value="val mutable AppFunctionStateDisabled : Android.App.AppFunctions.AppFunctionState" Usage="Android.App.AppFunctions.AppFunctionManager.AppFunctionStateDisabled" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("APP_FUNCTION_STATE_DISABLED", ApiSince=36)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("APP_FUNCTION_STATE_DISABLED", ApiSince=36)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.App.AppFunctions.AppFunctionState enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.App.AppFunctions.AppFunctionState enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android36.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android36.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.App.AppFunctions.AppFunctionState</ReturnType>
</ReturnValue>
<MemberValue>2</MemberValue>
<Docs>
<summary>The app function is disabled.</summary>
<remarks>
<para>The app function is disabled. To disable an app function, call <c>#setAppFunctionEnabled</c>
with this value.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/appfunctions/AppFunctionManager#APP_FUNCTION_STATE_DISABLED" title="Reference documentation">Java documentation for <code>android.app.appfunctions.AppFunctionManager.APP_FUNCTION_STATE_DISABLED</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="AppFunctionStateEnabled">
<MemberSignature Language="C#" Value="public const Android.App.AppFunctions.AppFunctionState AppFunctionStateEnabled = 1;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.App.AppFunctions.AppFunctionState AppFunctionStateEnabled = (1)" />
<MemberSignature Language="DocId" Value="F:Android.App.AppFunctions.AppFunctionManager.AppFunctionStateEnabled" />
<MemberSignature Language="F#" Value="val mutable AppFunctionStateEnabled : Android.App.AppFunctions.AppFunctionState" Usage="Android.App.AppFunctions.AppFunctionManager.AppFunctionStateEnabled" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("APP_FUNCTION_STATE_ENABLED", ApiSince=36)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("APP_FUNCTION_STATE_ENABLED", ApiSince=36)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.App.AppFunctions.AppFunctionState enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.App.AppFunctions.AppFunctionState enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android36.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android36.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.App.AppFunctions.AppFunctionState</ReturnType>
</ReturnValue>
<MemberValue>1</MemberValue>
<Docs>
<summary>The app function is enabled.</summary>
<remarks>
<para>The app function is enabled. To enable an app function, call <c>#setAppFunctionEnabled</c>
with this value.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/appfunctions/AppFunctionManager#APP_FUNCTION_STATE_ENABLED" title="Reference documentation">Java documentation for <code>android.app.appfunctions.AppFunctionManager.APP_FUNCTION_STATE_ENABLED</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="ExecuteAppFunction">
<MemberSignature Language="C#" Value="public void ExecuteAppFunction (Android.App.AppFunctions.ExecuteAppFunctionRequest request, Java.Util.Concurrent.IExecutor executor, Android.OS.CancellationSignal cancellationSignal, Android.OS.IOutcomeReceiver callback);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void ExecuteAppFunction(class Android.App.AppFunctions.ExecuteAppFunctionRequest request, class Java.Util.Concurrent.IExecutor executor, class Android.OS.CancellationSignal cancellationSignal, class Android.OS.IOutcomeReceiver callback) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.App.AppFunctions.AppFunctionManager.ExecuteAppFunction(Android.App.AppFunctions.ExecuteAppFunctionRequest,Java.Util.Concurrent.IExecutor,Android.OS.CancellationSignal,Android.OS.IOutcomeReceiver)" />
<MemberSignature Language="F#" Value="member this.ExecuteAppFunction : Android.App.AppFunctions.ExecuteAppFunctionRequest * Java.Util.Concurrent.IExecutor * Android.OS.CancellationSignal * Android.OS.IOutcomeReceiver -> unit" Usage="appFunctionManager.ExecuteAppFunction (request, executor, cancellationSignal, callback)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("executeAppFunction", "(Landroid/app/appfunctions/ExecuteAppFunctionRequest;Ljava/util/concurrent/Executor;Landroid/os/CancellationSignal;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("executeAppFunction", "(Landroid/app/appfunctions/ExecuteAppFunctionRequest;Ljava/util/concurrent/Executor;Landroid/os/CancellationSignal;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.RequiresPermission("android.permission.EXECUTE_APP_FUNCTIONS")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.RequiresPermission("android.permission.EXECUTE_APP_FUNCTIONS")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android36.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android36.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="request" Type="Android.App.AppFunctions.ExecuteAppFunctionRequest" />
<Parameter Name="executor" Type="Java.Util.Concurrent.IExecutor" />
<Parameter Name="cancellationSignal" Type="Android.OS.CancellationSignal" />
<Parameter Name="callback" Type="Android.OS.IOutcomeReceiver" />
</Parameters>
<Docs>
<param name="request">the request to execute the app function</param>
<param name="executor">the executor to run the callback</param>
<param name="cancellationSignal">the cancellation signal to cancel the execution.</param>
<param name="callback">the callback to receive the function execution result or error.
<p>If the calling app does not own the app function or does not have <c>android.permission.EXECUTE_APP_FUNCTIONS</c>, the execution result will contain <c>AppFunctionException.ERROR_DENIED</c>.
<p>If the caller only has <c>android.permission.EXECUTE_APP_FUNCTIONS</c>, the execution
result will contain <c>AppFunctionException.ERROR_DENIED</c><p>If the function requested for execution is disabled, then the execution result will
contain <c>AppFunctionException.ERROR_DISABLED</c><p>If the cancellation signal is issued, the operation is cancelled and no response is
returned to the caller.</param>
<summary>Executes the app function.</summary>
<remarks>
<para>Executes the app function.</para>
<para>Note: Applications can execute functions they define. To execute functions defined in
another component, apps would need to have the permission
<c>android.permission.EXECUTE_APP_FUNCTIONS</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/appfunctions/AppFunctionManager#executeAppFunction(android.app.appfunctions.ExecuteAppFunctionRequest,%20java.util.concurrent.Executor,%20android.os.CancellationSignal,%20android.os.OutcomeReceiver%3Candroid.app.appfunctions.ExecuteAppFunctionResponse,%20android.app.appfunctions.AppFunctionException%3E)" title="Reference documentation">Java documentation for <code>android.app.appfunctions.AppFunctionManager.executeAppFunction(android.app.appfunctions.ExecuteAppFunctionRequest, java.util.concurrent.Executor, android.os.CancellationSignal, android.os.OutcomeReceiver<android.app.appfunctions.ExecuteAppFunctionResponse, android.app.appfunctions.AppFunctionException>)</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="IsAppFunctionEnabled">
<MemberSignature Language="C#" Value="public void IsAppFunctionEnabled (string functionIdentifier, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void IsAppFunctionEnabled(string functionIdentifier, class Java.Util.Concurrent.IExecutor executor, class Android.OS.IOutcomeReceiver callback) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.App.AppFunctions.AppFunctionManager.IsAppFunctionEnabled(System.String,Java.Util.Concurrent.IExecutor,Android.OS.IOutcomeReceiver)" />
<MemberSignature Language="F#" Value="member this.IsAppFunctionEnabled : string * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit" Usage="appFunctionManager.IsAppFunctionEnabled (functionIdentifier, executor, callback)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("isAppFunctionEnabled", "(Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("isAppFunctionEnabled", "(Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android36.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android36.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="functionIdentifier" Type="System.String" />
<Parameter Name="executor" Type="Java.Util.Concurrent.IExecutor" />
<Parameter Name="callback" Type="Android.OS.IOutcomeReceiver" />
</Parameters>
<Docs>
<param name="functionIdentifier">the identifier of the app function to check (unique within the
target package) and in most cases, these are automatically generated by the AppFunctions
SDK</param>
<param name="executor">the executor to run the request</param>
<param name="callback">the callback to receive the function enabled check result</param>
<summary>Returns a boolean through a callback, indicating whether the app function is enabled.</summary>
<remarks>
<para>Returns a boolean through a callback, indicating whether the app function is enabled.</para>
<para>This method can only check app functions owned by the caller, unlike <c>#isAppFunctionEnabled(String, String, Executor, OutcomeReceiver)</c>, which allows specifying a
different target package.</para>
<para>If the operation fails, the callback's <c>OutcomeReceiver#onError</c> is called with
errors:
<ul>
<li><c>IllegalArgumentException</c>, if the function is not found or the caller does not
have access to it.
</ul></para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/appfunctions/AppFunctionManager#isAppFunctionEnabled(java.lang.String,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver%3Cjava.lang.Boolean,%20java.lang.Exception%3E)" title="Reference documentation">Java documentation for <code>android.app.appfunctions.AppFunctionManager.isAppFunctionEnabled(java.lang.String, java.util.concurrent.Executor, android.os.OutcomeReceiver<java.lang.Boolean, java.lang.Exception>)</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="IsAppFunctionEnabled">
<MemberSignature Language="C#" Value="public void IsAppFunctionEnabled (string functionIdentifier, string targetPackage, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void IsAppFunctionEnabled(string functionIdentifier, string targetPackage, class Java.Util.Concurrent.IExecutor executor, class Android.OS.IOutcomeReceiver callback) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.App.AppFunctions.AppFunctionManager.IsAppFunctionEnabled(System.String,System.String,Java.Util.Concurrent.IExecutor,Android.OS.IOutcomeReceiver)" />
<MemberSignature Language="F#" Value="member this.IsAppFunctionEnabled : string * string * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit" Usage="appFunctionManager.IsAppFunctionEnabled (functionIdentifier, targetPackage, executor, callback)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("isAppFunctionEnabled", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("isAppFunctionEnabled", "(Ljava/lang/String;Ljava/lang/String;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.RequiresPermission("android.permission.EXECUTE_APP_FUNCTIONS")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.RequiresPermission("android.permission.EXECUTE_APP_FUNCTIONS")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android36.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android36.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="functionIdentifier" Type="System.String" />
<Parameter Name="targetPackage" Type="System.String" />
<Parameter Name="executor" Type="Java.Util.Concurrent.IExecutor" />
<Parameter Name="callback" Type="Android.OS.IOutcomeReceiver" />
</Parameters>
<Docs>
<param name="functionIdentifier">the identifier of the app function to check (unique within the
target package) and in most cases, these are automatically generated by the AppFunctions
SDK</param>
<param name="targetPackage">the package name of the app function's owner</param>
<param name="executor">the executor to run the request</param>
<param name="callback">the callback to receive the function enabled check result</param>
<summary>Returns a boolean through a callback, indicating whether the app function is enabled.</summary>
<remarks>
<para>Returns a boolean through a callback, indicating whether the app function is enabled.</para>
<para>This method can only check app functions owned by the caller, or those where the caller
has visibility to the owner package and holds the
<c>Manifest.permission#EXECUTE_APP_FUNCTIONS</c> permission.</para>
<para>If the operation fails, the callback's <c>OutcomeReceiver#onError</c> is called with
errors:
<ul>
<li><c>IllegalArgumentException</c>, if the function is not found or the caller does not
have access to it.
</ul></para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/appfunctions/AppFunctionManager#isAppFunctionEnabled(java.lang.String,%20java.lang.String,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver%3Cjava.lang.Boolean,%20java.lang.Exception%3E)" title="Reference documentation">Java documentation for <code>android.app.appfunctions.AppFunctionManager.isAppFunctionEnabled(java.lang.String, java.lang.String, java.util.concurrent.Executor, android.os.OutcomeReceiver<java.lang.Boolean, java.lang.Exception>)</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.App.AppFunctions.AppFunctionManager.JniPeerMembers" />
<MemberSignature Language="F#" Value="member this.JniPeerMembers : Java.Interop.JniPeerMembers" Usage="Android.App.AppFunctions.AppFunctionManager.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>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="SetAppFunctionEnabled">
<MemberSignature Language="C#" Value="public void SetAppFunctionEnabled (string functionIdentifier, Android.App.AppFunctions.AppFunctionState newEnabledState, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig instance void SetAppFunctionEnabled(string functionIdentifier, valuetype Android.App.AppFunctions.AppFunctionState newEnabledState, class Java.Util.Concurrent.IExecutor executor, class Android.OS.IOutcomeReceiver callback) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.App.AppFunctions.AppFunctionManager.SetAppFunctionEnabled(System.String,Android.App.AppFunctions.AppFunctionState,Java.Util.Concurrent.IExecutor,Android.OS.IOutcomeReceiver)" />
<MemberSignature Language="F#" Value="member this.SetAppFunctionEnabled : string * Android.App.AppFunctions.AppFunctionState * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit" Usage="appFunctionManager.SetAppFunctionEnabled (functionIdentifier, newEnabledState, executor, callback)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("setAppFunctionEnabled", "(Ljava/lang/String;ILjava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("setAppFunctionEnabled", "(Ljava/lang/String;ILjava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android36.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android36.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="functionIdentifier" Type="System.String" />
<Parameter Name="newEnabledState" Type="Android.App.AppFunctions.AppFunctionState">
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.GeneratedEnum]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.GeneratedEnum>]</AttributeName>
</Attribute>
</Attributes>
</Parameter>
<Parameter Name="executor" Type="Java.Util.Concurrent.IExecutor" />
<Parameter Name="callback" Type="Android.OS.IOutcomeReceiver" />
</Parameters>
<Docs>
<param name="functionIdentifier">the identifier of the app function to enable (unique within the
calling package). In most cases, identifiers are automatically generated by the
AppFunctions SDK</param>
<param name="newEnabledState">the new state of the app function</param>
<param name="executor">the executor to run the callback</param>
<param name="callback">the callback to receive the result of the function enablement. The call was
successful if no exception was thrown.</param>
<summary>Sets the enabled state of the app function owned by the calling package.</summary>
<remarks>
<para>Sets the enabled state of the app function owned by the calling package.</para>
<para>If operation fails, the callback's <c>OutcomeReceiver#onError</c> is called with errors:
<ul>
<li><c>IllegalArgumentException</c>, if the function is not found or the caller does not
have access to it.
</ul></para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/app/appfunctions/AppFunctionManager#setAppFunctionEnabled(java.lang.String,%20int,%20java.util.concurrent.Executor,%20android.os.OutcomeReceiver%3Cjava.lang.Void,%20java.lang.Exception%3E)" title="Reference documentation">Java documentation for <code>android.app.appfunctions.AppFunctionManager.setAppFunctionEnabled(java.lang.String, int, java.util.concurrent.Executor, android.os.OutcomeReceiver<java.lang.Void, java.lang.Exception>)</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="ThresholdClass">
<MemberSignature Language="C#" Value="protected override IntPtr ThresholdClass { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance native int ThresholdClass" />
<MemberSignature Language="DocId" Value="P:Android.App.AppFunctions.AppFunctionManager.ThresholdClass" />
<MemberSignature Language="F#" Value="member this.ThresholdClass : nativeint" Usage="Android.App.AppFunctions.AppFunctionManager.ThresholdClass" />
<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>System.IntPtr</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
<Member MemberName="ThresholdType">
<MemberSignature Language="C#" Value="protected override Type ThresholdType { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance class System.Type ThresholdType" />
<MemberSignature Language="DocId" Value="P:Android.App.AppFunctions.AppFunctionManager.ThresholdType" />
<MemberSignature Language="F#" Value="member this.ThresholdType : Type" Usage="Android.App.AppFunctions.AppFunctionManager.ThresholdType" />
<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>System.Type</ReturnType>
</ReturnValue>
<Docs>
<summary>To be added.</summary>
<value>To be added.</value>
<remarks>To be added.</remarks>
</Docs>
</Member>
</Members>
</Type>