-
Notifications
You must be signed in to change notification settings - Fork 0
/
ComponentCallbacks2.xml
365 lines (365 loc) · 24.6 KB
/
ComponentCallbacks2.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
<Type Name="ComponentCallbacks2" FullName="Android.Content.ComponentCallbacks2">
<TypeSignature Language="C#" Value="public abstract class ComponentCallbacks2 : Java.Lang.Object" />
<TypeSignature Language="ILAsm" Value=".class public auto ansi abstract beforefieldinit ComponentCallbacks2 extends Java.Lang.Object" />
<TypeSignature Language="DocId" Value="T:Android.Content.ComponentCallbacks2" />
<TypeSignature Language="F#" Value="type ComponentCallbacks2 = 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/ComponentCallbacks2", DoNotGenerateAcw=true)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/content/ComponentCallbacks2", DoNotGenerateAcw=true)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("Use the 'Android.Content.IComponentCallbacks2' type. This class will be removed in a future release.")]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("Use the 'Android.Content.IComponentCallbacks2' type. This class will be removed in a future release.")>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="14">
<summary>Extended <see cref="T:Android.Content.IComponentCallbacks" /> interface with a new callback for
finer-grained memory management.</summary>
<remarks>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ComponentCallbacks2" title="Reference documentation">Android platform documentation</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 14" />
</Docs>
<Members>
<Member MemberName="TrimMemoryBackground">
<MemberSignature Language="C#" Value="public const Android.Content.TrimMemory TrimMemoryBackground = 40;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Content.TrimMemory TrimMemoryBackground = (40)" />
<MemberSignature Language="DocId" Value="F:Android.Content.ComponentCallbacks2.TrimMemoryBackground" />
<MemberSignature Language="F#" Value="val mutable TrimMemoryBackground : Android.Content.TrimMemory" Usage="Android.Content.ComponentCallbacks2.TrimMemoryBackground" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("TRIM_MEMORY_BACKGROUND")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("TRIM_MEMORY_BACKGROUND")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Content.TrimMemory</ReturnType>
</ReturnValue>
<MemberValue>40</MemberValue>
<Docs>
<summary>Level for <c>#onTrimMemory(int)</c>: the process has gone on to the
LRU list.</summary>
<remarks>
<para>Level for <c>#onTrimMemory(int)</c>: the process has gone on to the
LRU list. This is a good opportunity to clean up resources that can
efficiently and quickly be re-built if the user returns to the app.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_BACKGROUND" title="Reference documentation">Java documentation for <code>android.content.ComponentCallbacks2.TRIM_MEMORY_BACKGROUND</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 14" />
</Docs>
</Member>
<Member MemberName="TrimMemoryComplete">
<MemberSignature Language="C#" Value="public const Android.Content.TrimMemory TrimMemoryComplete = 80;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Content.TrimMemory TrimMemoryComplete = (80)" />
<MemberSignature Language="DocId" Value="F:Android.Content.ComponentCallbacks2.TrimMemoryComplete" />
<MemberSignature Language="F#" Value="val mutable TrimMemoryComplete : Android.Content.TrimMemory" Usage="Android.Content.ComponentCallbacks2.TrimMemoryComplete" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("TRIM_MEMORY_COMPLETE")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("TRIM_MEMORY_COMPLETE")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Content.TrimMemory</ReturnType>
</ReturnValue>
<MemberValue>80</MemberValue>
<Docs>
<summary>Level for <c>#onTrimMemory(int)</c>: the process is nearing the end
of the background LRU list, and if more memory isn't found soon it will
be killed.</summary>
<remarks>
<para>Level for <c>#onTrimMemory(int)</c>: the process is nearing the end
of the background LRU list, and if more memory isn't found soon it will
be killed.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_COMPLETE" title="Reference documentation">Java documentation for <code>android.content.ComponentCallbacks2.TRIM_MEMORY_COMPLETE</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 14" />
</Docs>
</Member>
<Member MemberName="TrimMemoryModerate">
<MemberSignature Language="C#" Value="public const Android.Content.TrimMemory TrimMemoryModerate = 60;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Content.TrimMemory TrimMemoryModerate = (60)" />
<MemberSignature Language="DocId" Value="F:Android.Content.ComponentCallbacks2.TrimMemoryModerate" />
<MemberSignature Language="F#" Value="val mutable TrimMemoryModerate : Android.Content.TrimMemory" Usage="Android.Content.ComponentCallbacks2.TrimMemoryModerate" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("TRIM_MEMORY_MODERATE")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("TRIM_MEMORY_MODERATE")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Content.TrimMemory</ReturnType>
</ReturnValue>
<MemberValue>60</MemberValue>
<Docs>
<summary>Level for <c>#onTrimMemory(int)</c>: the process is around the middle
of the background LRU list; freeing memory can help the system keep
other processes running later in the list for better overall performance.</summary>
<remarks>
<para>Level for <c>#onTrimMemory(int)</c>: the process is around the middle
of the background LRU list; freeing memory can help the system keep
other processes running later in the list for better overall performance.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_MODERATE" title="Reference documentation">Java documentation for <code>android.content.ComponentCallbacks2.TRIM_MEMORY_MODERATE</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 14" />
</Docs>
</Member>
<Member MemberName="TrimMemoryRunningCritical">
<MemberSignature Language="C#" Value="public const Android.Content.TrimMemory TrimMemoryRunningCritical = 15;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Content.TrimMemory TrimMemoryRunningCritical = (15)" />
<MemberSignature Language="DocId" Value="F:Android.Content.ComponentCallbacks2.TrimMemoryRunningCritical" />
<MemberSignature Language="F#" Value="val mutable TrimMemoryRunningCritical : Android.Content.TrimMemory" Usage="Android.Content.ComponentCallbacks2.TrimMemoryRunningCritical" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("TRIM_MEMORY_RUNNING_CRITICAL")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("TRIM_MEMORY_RUNNING_CRITICAL")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Content.TrimMemory</ReturnType>
</ReturnValue>
<MemberValue>15</MemberValue>
<Docs>
<summary>Level for <c>#onTrimMemory(int)</c>: the process is not an expendable
background process, but the device is running extremely low on memory
and is about to not be able to keep any background processes running.</summary>
<remarks>
<para>Level for <c>#onTrimMemory(int)</c>: the process is not an expendable
background process, but the device is running extremely low on memory
and is about to not be able to keep any background processes running.
Your running process should free up as many non-critical resources as it
can to allow that memory to be used elsewhere. The next thing that
will happen after this is <c>#onLowMemory()</c> called to report that
nothing at all can be kept in the background, a situation that can start
to notably impact the user.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_RUNNING_CRITICAL" title="Reference documentation">Java documentation for <code>android.content.ComponentCallbacks2.TRIM_MEMORY_RUNNING_CRITICAL</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" />
</Docs>
</Member>
<Member MemberName="TrimMemoryRunningLow">
<MemberSignature Language="C#" Value="public const Android.Content.TrimMemory TrimMemoryRunningLow = 10;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Content.TrimMemory TrimMemoryRunningLow = (10)" />
<MemberSignature Language="DocId" Value="F:Android.Content.ComponentCallbacks2.TrimMemoryRunningLow" />
<MemberSignature Language="F#" Value="val mutable TrimMemoryRunningLow : Android.Content.TrimMemory" Usage="Android.Content.ComponentCallbacks2.TrimMemoryRunningLow" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("TRIM_MEMORY_RUNNING_LOW")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("TRIM_MEMORY_RUNNING_LOW")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Content.TrimMemory</ReturnType>
</ReturnValue>
<MemberValue>10</MemberValue>
<Docs>
<summary>Level for <c>#onTrimMemory(int)</c>: the process is not an expendable
background process, but the device is running low on memory.</summary>
<remarks>
<para>Level for <c>#onTrimMemory(int)</c>: the process is not an expendable
background process, but the device is running low on memory.
Your running process should free up unneeded resources to allow that
memory to be used elsewhere.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_RUNNING_LOW" title="Reference documentation">Java documentation for <code>android.content.ComponentCallbacks2.TRIM_MEMORY_RUNNING_LOW</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" />
</Docs>
</Member>
<Member MemberName="TrimMemoryRunningModerate">
<MemberSignature Language="C#" Value="public const Android.Content.TrimMemory TrimMemoryRunningModerate = 5;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Content.TrimMemory TrimMemoryRunningModerate = (5)" />
<MemberSignature Language="DocId" Value="F:Android.Content.ComponentCallbacks2.TrimMemoryRunningModerate" />
<MemberSignature Language="F#" Value="val mutable TrimMemoryRunningModerate : Android.Content.TrimMemory" Usage="Android.Content.ComponentCallbacks2.TrimMemoryRunningModerate" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("TRIM_MEMORY_RUNNING_MODERATE")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("TRIM_MEMORY_RUNNING_MODERATE")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Content.TrimMemory</ReturnType>
</ReturnValue>
<MemberValue>5</MemberValue>
<Docs>
<summary>Level for <c>#onTrimMemory(int)</c>: the process is not an expendable
background process, but the device is running moderately low on memory.</summary>
<remarks>
<para>Level for <c>#onTrimMemory(int)</c>: the process is not an expendable
background process, but the device is running moderately low on memory.
Your running process may want to release some unneeded resources for
use elsewhere.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_RUNNING_MODERATE" title="Reference documentation">Java documentation for <code>android.content.ComponentCallbacks2.TRIM_MEMORY_RUNNING_MODERATE</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" />
</Docs>
</Member>
<Member MemberName="TrimMemoryUiHidden">
<MemberSignature Language="C#" Value="public const Android.Content.TrimMemory TrimMemoryUiHidden = 20;" />
<MemberSignature Language="ILAsm" Value=".field public static literal valuetype Android.Content.TrimMemory TrimMemoryUiHidden = (20)" />
<MemberSignature Language="DocId" Value="F:Android.Content.ComponentCallbacks2.TrimMemoryUiHidden" />
<MemberSignature Language="F#" Value="val mutable TrimMemoryUiHidden : Android.Content.TrimMemory" Usage="Android.Content.ComponentCallbacks2.TrimMemoryUiHidden" />
<MemberType>Field</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("TRIM_MEMORY_UI_HIDDEN")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("TRIM_MEMORY_UI_HIDDEN")>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)]</AttributeName>
<AttributeName Language="F#">[<System.Obsolete("This constant will be removed in the future version. Use Android.Content.TrimMemory enum directly instead of this field.", true)>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>Android.Content.TrimMemory</ReturnType>
</ReturnValue>
<MemberValue>20</MemberValue>
<Docs>
<summary>Level for <c>#onTrimMemory(int)</c>: the process had been showing
a user interface, and is no longer doing so.</summary>
<remarks>
<para>Level for <c>#onTrimMemory(int)</c>: the process had been showing
a user interface, and is no longer doing so. Large allocations with
the UI should be released at this point to allow memory to be better
managed.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ComponentCallbacks2#TRIM_MEMORY_UI_HIDDEN" title="Reference documentation">Java documentation for <code>android.content.ComponentCallbacks2.TRIM_MEMORY_UI_HIDDEN</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 14" />
</Docs>
</Member>
</Members>
</Type>