-
Notifications
You must be signed in to change notification settings - Fork 9
Expand file tree
/
Copy pathIComponentCallbacks.xml
More file actions
155 lines (155 loc) Β· 10.7 KB
/
IComponentCallbacks.xml
File metadata and controls
155 lines (155 loc) Β· 10.7 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
<Type Name="IComponentCallbacks" FullName="Android.Content.IComponentCallbacks">
<TypeSignature Language="C#" Value="public interface IComponentCallbacks : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract beforefieldinit IComponentCallbacks implements class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Android.Content.IComponentCallbacks" />
<TypeSignature Language="F#" Value="type IComponentCallbacks = interface
 interface IJavaObject
 interface IDisposable
 interface IJavaPeerable" />
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Interfaces>
<Interface>
<InterfaceName>Android.Runtime.IJavaObject</InterfaceName>
</Interface>
<Interface>
<InterfaceName>Java.Interop.IJavaPeerable</InterfaceName>
</Interface>
<Interface>
<InterfaceName>System.IDisposable</InterfaceName>
</Interface>
</Interfaces>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("android/content/ComponentCallbacks", "", "Android.Content.IComponentCallbacksInvoker")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/content/ComponentCallbacks", "", "Android.Content.IComponentCallbacksInvoker")>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="1">
<summary>The set of callback APIs that are common to all application components
(<c>android.app.Activity</c>, <c>android.app.Service</c>,
<c>ContentProvider</c>, and <c>android.app.Application</c>).</summary>
<remarks>
<para>The set of callback APIs that are common to all application components
(<c>android.app.Activity</c>, <c>android.app.Service</c>,
<c>ContentProvider</c>, and <c>android.app.Application</c>).</para>
<para><strong>Note:</strong> You should also implement the <c>ComponentCallbacks2</c> interface, which provides the <c>ComponentCallbacks2#onTrimMemory</c> callback to help your app manage its memory usage more
effectively.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ComponentCallbacks" title="Reference documentation">Java documentation for <code>android.content.ComponentCallbacks</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
<Members>
<Member MemberName="OnConfigurationChanged">
<MemberSignature Language="C#" Value="public void OnConfigurationChanged (Android.Content.Res.Configuration newConfig);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnConfigurationChanged(class Android.Content.Res.Configuration newConfig) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.IComponentCallbacks.OnConfigurationChanged(Android.Content.Res.Configuration)" />
<MemberSignature Language="F#" Value="abstract member OnConfigurationChanged : Android.Content.Res.Configuration -> unit" Usage="iComponentCallbacks.OnConfigurationChanged newConfig" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onConfigurationChanged", "(Landroid/content/res/Configuration;)V", "GetOnConfigurationChanged_Landroid_content_res_Configuration_Handler:Android.Content.IComponentCallbacksInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onConfigurationChanged", "(Landroid/content/res/Configuration;)V", "GetOnConfigurationChanged_Landroid_content_res_Configuration_Handler:Android.Content.IComponentCallbacksInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="newConfig" Type="Android.Content.Res.Configuration" />
</Parameters>
<Docs>
<param name="newConfig">The new device configuration.</param>
<summary>Called by the system when the device configuration changes while your
component is running.</summary>
<remarks>
<para>Called by the system when the device configuration changes while your
component is running. Note that, unlike activities, other components
are never restarted when a configuration changes: they must always deal
with the results of the change, such as by re-retrieving resources.</para>
<para>At the time that this function has been called, your Resources
object will have been updated to return resource values matching the
new configuration.</para>
<para>For more information, read <see href="https://developer.android.com/guide/topics/resources/runtime-changes.html">Handling Runtime Changes</see>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ComponentCallbacks#onConfigurationChanged(android.content.res.Configuration)" title="Reference documentation">Java documentation for <code>android.content.ComponentCallbacks.onConfigurationChanged(android.content.res.Configuration)</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
<Member MemberName="OnLowMemory">
<MemberSignature Language="C#" Value="public void OnLowMemory ();" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnLowMemory() cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.IComponentCallbacks.OnLowMemory" />
<MemberSignature Language="F#" Value="abstract member OnLowMemory : unit -> unit" Usage="iComponentCallbacks.OnLowMemory " />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onLowMemory", "()V", "GetOnLowMemoryHandler:Android.Content.IComponentCallbacksInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onLowMemory", "()V", "GetOnLowMemoryHandler:Android.Content.IComponentCallbacksInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
<Attribute FrameworkAlternate="net-android-35.0;net-android-36.0">
<AttributeName Language="C#">[System.Runtime.Versioning.ObsoletedOSPlatform("android35.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.ObsoletedOSPlatform("android35.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters />
<Docs>
<summary>This is called when the overall system is running low on memory, and
actively running processes should trim their memory usage.</summary>
<remarks>
<para>This is called when the overall system is running low on memory, and
actively running processes should trim their memory usage. While
the exact point at which this will be called is not defined, generally
it will happen when all background process have been killed.
That is, before reaching the point of killing processes hosting
service and foreground UI that we would like to avoid killing.</para>
<para>This member is deprecated. Since API level 14 this is superseded by
<c>ComponentCallbacks2#onTrimMemory</c>.
Since API level 34 this is never called.
If you're overriding ComponentCallbacks2#onTrimMemory and
your minSdkVersion is greater than API 14, you can provide
an empty implementation for this method.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ComponentCallbacks#onLowMemory()" title="Reference documentation">Java documentation for <code>android.content.ComponentCallbacks.onLowMemory()</code>.</a>
</format>
</para>
<para>
Portions of this page are modifications based on work created and shared by the
<format type="text/html"><a href="https://developers.google.com/terms/site-policies" title="Android Open Source Project">Android Open Source Project</a></format>
and used according to terms described in the
<format type="text/html"><a href="https://creativecommons.org/licenses/by/2.5/" title="Creative Commons 2.5 Attribution License">Creative Commons 2.5 Attribution License.</a></format></para>
</remarks>
<since version="Added in API level 1" />
</Docs>
</Member>
</Members>
</Type>