-
Notifications
You must be signed in to change notification settings - Fork 12
Expand file tree
/
Copy pathAsyncTaskLoader.xml
More file actions
569 lines (562 loc) · 38.8 KB
/
Copy pathAsyncTaskLoader.xml
File metadata and controls
569 lines (562 loc) · 38.8 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
558
559
560
561
562
563
564
565
566
567
568
569
<Type Name="AsyncTaskLoader" FullName="Android.Content.AsyncTaskLoader">
<TypeSignature Language="C#" Value="public abstract class AsyncTaskLoader : Android.Content.Loader" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract beforefieldinit AsyncTaskLoader extends Android.Content.Loader" />
<TypeSignature Language="DocId" Value="T:Android.Content.AsyncTaskLoader" />
<TypeSignature Language="F#" Value="type AsyncTaskLoader = class
 inherit Loader" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Base>
<BaseTypeName>Android.Content.Loader</BaseTypeName>
</Base>
<Interfaces />
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("android/content/AsyncTaskLoader", DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/content/AsyncTaskLoader", DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[Java.Interop.JavaTypeParameters(new System.String[] { "D" })]</AttributeName>
<AttributeName Language="F#">[<Java.Interop.JavaTypeParameters(new System.String[] { "D" })>]</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.CompilerServices.NullableContext(1)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.NullableContext(1)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.ObsoletedOSPlatform("android28.0", "This class is obsoleted in this android platform")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.ObsoletedOSPlatform("android28.0", "This class is obsoleted in this android platform")>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="11">
<param name="<D><D>">the data type to be loaded.</param>
<summary>Abstract Loader that provides an <c>AsyncTask</c> to do the work.</summary>
<remarks>
<para>Abstract Loader that provides an <c>AsyncTask</c> to do the work. See
<c>Loader</c> and <c>android.app.LoaderManager</c> for more details.</para>
<para>Here is an example implementation of an AsyncTaskLoader subclass that
loads the currently installed applications from the package manager. This
implementation takes care of retrieving the application labels and sorting
its result set from them, monitoring for changes to the installed
applications, and rebuilding the list when a change in configuration requires
this (such as a locale change).
{</para>
<para>This member is deprecated. Use the <see href="https://developer.android.com/tools/extras/support-library.html">Support Library</see><c>androidx.loader.content.AsyncTaskLoader</c></para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/AsyncTaskLoader" title="Reference documentation">Java documentation for <code>android.content.AsyncTaskLoader</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 11" />
</Docs>
<Members>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="public AsyncTaskLoader (Android.Content.Context? context);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig specialname rtspecialname instance void .ctor(class Android.Content.Context context) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.AsyncTaskLoader.#ctor(Android.Content.Context)" />
<MemberSignature Language="F#" Value="new Android.Content.AsyncTaskLoader : Android.Content.Context -> Android.Content.AsyncTaskLoader" Usage="new Android.Content.AsyncTaskLoader context" />
<MemberType>Constructor</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register(".ctor", "(Landroid/content/Context;)V", "")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.NullableContext(2)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.NullableContext(2)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.ObsoletedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.ObsoletedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<Parameters>
<Parameter Name="context" Type="Android.Content.Context" />
</Parameters>
<Docs>
<param name="context">The context to use for the operation.</param>
<summary>
</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>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/AsyncTaskLoader#AsyncTaskLoader(android.content.Context)" title="Reference documentation">Java documentation for <code>android.content.AsyncTaskLoader.AsyncTaskLoader(android.content.Context)</code>.</a>
</format>
</para>
</remarks>
<since version="Added in API level 11" />
</Docs>
</Member>
<Member MemberName=".ctor">
<MemberSignature Language="C#" Value="protected AsyncTaskLoader (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.AsyncTaskLoader.#ctor(System.IntPtr,Android.Runtime.JniHandleOwnership)" />
<MemberSignature Language="F#" Value="new Android.Content.AsyncTaskLoader : nativeint * Android.Runtime.JniHandleOwnership -> Android.Content.AsyncTaskLoader" Usage="new Android.Content.AsyncTaskLoader (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="CancelLoad">
<MemberSignature Language="C#" Value="public override bool CancelLoad ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig virtual instance bool CancelLoad() cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.AsyncTaskLoader.CancelLoad" />
<MemberSignature Language="F#" Value="override this.CancelLoad : unit -> bool" Usage="asyncTaskLoader.CancelLoad " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("cancelLoad", "()Z", "GetCancelLoadHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("cancelLoad", "()Z", "GetCancelLoadHandler")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("Use the Support Library AsyncTaskLoader.")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("Use the Support Library AsyncTaskLoader.")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Attempt to cancel the current load task. Must be called on the main thread of the process. Cancellation is not an immediate operation, since the load is performed in a background thread. If there is currently a load in progress, this method requests that the load be canceled, and notes this is the case; once the background thread has completed its work its remaining state will be cleared. If another load request comes in during this time, it will be held until the canceled load is complete.</summary>
<returns>Returns false if the task could not be canceled, typically because it has already completed normally, or because startLoading() hasn't been called; returns true otherwise. When true is returned, the task is still running and the OnLoadCanceledListener will be called when the task completes.</returns>
<remarks>
<para>Portions of this page are modifications based on work created and shared by the <format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format> and used according to terms described in the <format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/Loader#cancelLoad()" title="Reference documentation">Java documentation for <code>android.content.Loader.cancelLoad()</code>.</a>
</format>
</para>
</remarks>
</Docs>
</Member>
<Member MemberName="CancelLoadInBackground">
<MemberSignature Language="C#" Value="public virtual void CancelLoadInBackground ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void CancelLoadInBackground() cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.AsyncTaskLoader.CancelLoadInBackground" />
<MemberSignature Language="F#" Value="abstract member CancelLoadInBackground : unit -> unit
override this.CancelLoadInBackground : unit -> unit" Usage="asyncTaskLoader.CancelLoadInBackground " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("cancelLoadInBackground", "()V", "GetCancelLoadInBackgroundHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("cancelLoadInBackground", "()V", "GetCancelLoadInBackgroundHandler")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.ObsoletedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.ObsoletedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Called on the main thread to abort a load in progress.</summary>
<remarks>
<para>Called on the main thread to abort a load in progress.
Override this method to abort the current invocation of <c>#loadInBackground</c>
that is running in the background on a worker thread.
This method should do nothing if <c>#loadInBackground</c> has not started
running or if it has already finished.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/AsyncTaskLoader#cancelLoadInBackground()" title="Reference documentation">Java documentation for <code>android.content.AsyncTaskLoader.cancelLoadInBackground()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 16" />
<altmember cref="M:Android.Content.AsyncTaskLoader.LoadInBackground" />
</Docs>
</Member>
<Member MemberName="IsLoadInBackgroundCanceled">
<MemberSignature Language="C#" Value="public virtual bool IsLoadInBackgroundCanceled { get; }" />
<MemberSignature Language="ILAsm" Value=".property instance bool IsLoadInBackgroundCanceled" />
<MemberSignature Language="DocId" Value="P:Android.Content.AsyncTaskLoader.IsLoadInBackgroundCanceled" />
<MemberSignature Language="F#" Value="member this.IsLoadInBackgroundCanceled : bool" Usage="Android.Content.AsyncTaskLoader.IsLoadInBackgroundCanceled" />
<MemberType>Property</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.ObsoletedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.ObsoletedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[get: Android.Runtime.Register("isLoadInBackgroundCanceled", "()Z", "GetIsLoadInBackgroundCanceledHandler")]</AttributeName>
<AttributeName Language="F#">[<get: Android.Runtime.Register("isLoadInBackgroundCanceled", "()Z", "GetIsLoadInBackgroundCanceledHandler")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Boolean</ReturnType>
</ReturnValue>
<Docs>
<summary>Returns true if the current invocation of <c>#loadInBackground</c> is being canceled.</summary>
<value>True if the current invocation of <c>#loadInBackground</c> is being canceled.</value>
<remarks>
<para>Returns true if the current invocation of <c>#loadInBackground</c> is being canceled.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/AsyncTaskLoader#isLoadInBackgroundCanceled()" title="Reference documentation">Java documentation for <code>android.content.AsyncTaskLoader.isLoadInBackgroundCanceled()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 16" />
<altmember cref="M:Android.Content.AsyncTaskLoader.LoadInBackground" />
</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.AsyncTaskLoader.JniPeerMembers" />
<MemberSignature Language="F#" Value="member this.JniPeerMembers : Java.Interop.JniPeerMembers" Usage="Android.Content.AsyncTaskLoader.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>Gets the JNI metadata used to invoke members of this Java peer.</summary>
<value>The JNI peer members for <c>AsyncTaskLoader</c>.</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="LoadInBackground">
<MemberSignature Language="C#" Value="public abstract Java.Lang.Object? LoadInBackground ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance class Java.Lang.Object LoadInBackground() cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.AsyncTaskLoader.LoadInBackground" />
<MemberSignature Language="F#" Value="abstract member LoadInBackground : unit -> Java.Lang.Object" Usage="asyncTaskLoader.LoadInBackground " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("loadInBackground", "()Ljava/lang/Object;", "GetLoadInBackgroundHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("loadInBackground", "()Ljava/lang/Object;", "GetLoadInBackgroundHandler")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.NullableContext(2)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.NullableContext(2)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.ObsoletedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.ObsoletedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Object</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Called on a worker thread to perform the actual load and to return
the result of the load operation.</summary>
<returns>The result of the load operation.</returns>
<remarks>
<para>Called on a worker thread to perform the actual load and to return
the result of the load operation.
Implementations should not deliver the result directly, but should return them
from this method, which will eventually end up calling <c>#deliverResult</c> on
the UI thread. If implementations need to process the results on the UI thread
they may override <c>#deliverResult</c> and do so there.
To support cancellation, this method should periodically check the value of
<c>#isLoadInBackgroundCanceled</c> and terminate when it returns true.
Subclasses may also override <c>#cancelLoadInBackground</c> to interrupt the load
directly instead of polling <c>#isLoadInBackgroundCanceled</c>.
When the load is canceled, this method may either return normally or throw
<c>OperationCanceledException</c>. In either case, the <c>Loader</c> will
call <c>#onCanceled</c> to perform post-cancellation cleanup and to dispose of the
result object, if any.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/AsyncTaskLoader#loadInBackground()" title="Reference documentation">Java documentation for <code>android.content.AsyncTaskLoader.loadInBackground()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 11" />
<exception cref="T:Android.OS.OperationCanceledException">if the load is canceled during execution.</exception>
<altmember cref="P:Android.Content.AsyncTaskLoader.IsLoadInBackgroundCanceled" />
<altmember cref="M:Android.Content.AsyncTaskLoader.CancelLoadInBackground" />
</Docs>
</Member>
<Member MemberName="OnCanceled">
<MemberSignature Language="C#" Value="public virtual void OnCanceled (Java.Lang.Object? data);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnCanceled(class Java.Lang.Object data) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.AsyncTaskLoader.OnCanceled(Java.Lang.Object)" />
<MemberSignature Language="F#" Value="abstract member OnCanceled : Java.Lang.Object -> unit
override this.OnCanceled : Java.Lang.Object -> unit" Usage="asyncTaskLoader.OnCanceled data" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onCanceled", "(Ljava/lang/Object;)V", "GetOnCanceled_Ljava_lang_Object_Handler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onCanceled", "(Ljava/lang/Object;)V", "GetOnCanceled_Ljava_lang_Object_Handler")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.NullableContext(2)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.NullableContext(2)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.ObsoletedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.ObsoletedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="data" Type="Java.Lang.Object" />
</Parameters>
<Docs>
<param name="data">The value that was returned by <c>#loadInBackground</c>, or null
if the task threw <c>OperationCanceledException</c>.</param>
<summary>Called if the task was canceled before it was completed.</summary>
<remarks>
<para>Called if the task was canceled before it was completed. Gives the class a chance
to clean up post-cancellation and to properly dispose of the result.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/AsyncTaskLoader#onCanceled(D)" title="Reference documentation">Java documentation for <code>android.content.AsyncTaskLoader.onCanceled(D)</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="OnLoadInBackground">
<MemberSignature Language="C#" Value="protected virtual Java.Lang.Object? OnLoadInBackground ();" />
<MemberSignature Language="ILAsm" Value=".method familyhidebysig newslot virtual instance class Java.Lang.Object OnLoadInBackground() cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.AsyncTaskLoader.OnLoadInBackground" />
<MemberSignature Language="F#" Value="abstract member OnLoadInBackground : unit -> Java.Lang.Object
override this.OnLoadInBackground : unit -> Java.Lang.Object" Usage="asyncTaskLoader.OnLoadInBackground " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onLoadInBackground", "()Ljava/lang/Object;", "GetOnLoadInBackgroundHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onLoadInBackground", "()Ljava/lang/Object;", "GetOnLoadInBackgroundHandler")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.CompilerServices.NullableContext(2)]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.CompilerServices.NullableContext(2)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.ObsoletedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.ObsoletedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Java.Lang.Object</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>Calls <c>#loadInBackground()</c>.</summary>
<returns>The result of the load operation.</returns>
<remarks>
<para>Calls <c>#loadInBackground()</c>.
This method is reserved for use by the loader framework.
Subclasses should override <c>#loadInBackground</c> instead of this method.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/AsyncTaskLoader#onLoadInBackground()" title="Reference documentation">Java documentation for <code>android.content.AsyncTaskLoader.onLoadInBackground()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 11" />
<exception cref="T:Android.OS.OperationCanceledException">if the load is canceled during execution.</exception>
<altmember cref="M:Android.Content.AsyncTaskLoader.LoadInBackground" />
</Docs>
</Member>
<Member MemberName="SetUpdateThrottle">
<MemberSignature Language="C#" Value="public virtual void SetUpdateThrottle (long delayMS);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void SetUpdateThrottle(int64 delayMS) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.AsyncTaskLoader.SetUpdateThrottle(System.Int64)" />
<MemberSignature Language="F#" Value="abstract member SetUpdateThrottle : int64 -> unit
override this.SetUpdateThrottle : int64 -> unit" Usage="asyncTaskLoader.SetUpdateThrottle delayMS" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("setUpdateThrottle", "(J)V", "GetSetUpdateThrottle_JHandler")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("setUpdateThrottle", "(J)V", "GetSetUpdateThrottle_JHandler")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.ObsoletedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.ObsoletedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="delayMS" Type="System.Int64" />
</Parameters>
<Docs>
<param name="delayMS">Amount of delay, in milliseconds.</param>
<summary>Set amount to throttle updates by.</summary>
<remarks>
<para>Set amount to throttle updates by. This is the minimum time from
when the last <c>#loadInBackground()</c> call has completed until
a new load is scheduled.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/AsyncTaskLoader#setUpdateThrottle(long)" title="Reference documentation">Java documentation for <code>android.content.AsyncTaskLoader.setUpdateThrottle(long)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 11" />
</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.Content.AsyncTaskLoader.ThresholdClass" />
<MemberSignature Language="F#" Value="member this.ThresholdClass : nativeint" Usage="Android.Content.AsyncTaskLoader.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>This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.</summary>
<value>A <see cref="T:System.IntPtr" /> which contains the <c>java.lang.Class</c> JNI value corresponding to this type.</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="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.Content.AsyncTaskLoader.ThresholdType" />
<MemberSignature Language="F#" Value="member this.ThresholdType : Type" Usage="Android.Content.AsyncTaskLoader.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>This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.</summary>
<value>A <see cref="T:System.Type" /> which provides the declaring type.</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>
</Members>
</Type>