-
Notifications
You must be signed in to change notification settings - Fork 0
/
IServiceConnection.xml
257 lines (254 loc) · 18.4 KB
/
IServiceConnection.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
<Type Name="IServiceConnection" FullName="Android.Content.IServiceConnection">
<TypeSignature Language="C#" Value="public interface IServiceConnection : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable" />
<TypeSignature Language="ILAsm" Value=".class public interface auto ansi abstract beforefieldinit IServiceConnection implements class Android.Runtime.IJavaObject, class Java.Interop.IJavaPeerable, class System.IDisposable" />
<TypeSignature Language="DocId" Value="T:Android.Content.IServiceConnection" />
<TypeSignature Language="F#" Value="type IServiceConnection = 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/ServiceConnection", "", "Android.Content.IServiceConnectionInvoker")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("android/content/ServiceConnection", "", "Android.Content.IServiceConnectionInvoker")>]</AttributeName>
</Attribute>
</Attributes>
<Docs since="1">
<summary>Interface for monitoring the state of an application service.</summary>
<remarks>
<para>Interface for monitoring the state of an application service. See
<c>android.app.Service</c> and
<c>Context#bindService Context.bindService()</c> for more information.</para>
<para>Like many callbacks from the system, the methods on this class are called
from the main thread of your process.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ServiceConnection" title="Reference documentation">Java documentation for <code>android.content.ServiceConnection</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="OnBindingDied">
<MemberSignature Language="C#" Value="public virtual void OnBindingDied (Android.Content.ComponentName? name);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnBindingDied(class Android.Content.ComponentName name) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.IServiceConnection.OnBindingDied(Android.Content.ComponentName)" />
<MemberSignature Language="F#" Value="abstract member OnBindingDied : Android.Content.ComponentName -> unit
override this.OnBindingDied : Android.Content.ComponentName -> unit" Usage="iServiceConnection.OnBindingDied name" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onBindingDied", "(Landroid/content/ComponentName;)V", "GetOnBindingDied_Landroid_content_ComponentName_Handler:Android.Content.IServiceConnection, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onBindingDied", "(Landroid/content/ComponentName;)V", "GetOnBindingDied_Landroid_content_ComponentName_Handler:Android.Content.IServiceConnection, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android26.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android26.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="Android.Content.ComponentName" />
</Parameters>
<Docs>
<param name="name">The concrete component name of the service whose connection is dead.</param>
<summary>Called when the binding to this connection is dead.</summary>
<remarks>
<para>Called when the binding to this connection is dead. This means the
interface will never receive another connection. The application will
need to unbind and rebind the connection to activate it again. This may
happen, for example, if the application hosting the service it is bound to
has been updated.
<p class="note"><b>Note:</b> The app that requested the binding must call
<c>Context#unbindService(ServiceConnection)</c> to release the tracking
resources associated with this ServiceConnection even if this callback was
invoked following <c>Context#bindService Context.bindService() bindService()</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ServiceConnection#onBindingDied(android.content.ComponentName)" title="Reference documentation">Java documentation for <code>android.content.ServiceConnection.onBindingDied(android.content.ComponentName)</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="OnNullBinding">
<MemberSignature Language="C#" Value="public virtual void OnNullBinding (Android.Content.ComponentName? name);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnNullBinding(class Android.Content.ComponentName name) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.IServiceConnection.OnNullBinding(Android.Content.ComponentName)" />
<MemberSignature Language="F#" Value="abstract member OnNullBinding : Android.Content.ComponentName -> unit
override this.OnNullBinding : Android.Content.ComponentName -> unit" Usage="iServiceConnection.OnNullBinding name" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onNullBinding", "(Landroid/content/ComponentName;)V", "GetOnNullBinding_Landroid_content_ComponentName_Handler:Android.Content.IServiceConnection, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=28)]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onNullBinding", "(Landroid/content/ComponentName;)V", "GetOnNullBinding_Landroid_content_ComponentName_Handler:Android.Content.IServiceConnection, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=28)>]</AttributeName>
</Attribute>
<Attribute>
<AttributeName Language="C#">[System.Runtime.Versioning.SupportedOSPlatform("android28.0")]</AttributeName>
<AttributeName Language="F#">[<System.Runtime.Versioning.SupportedOSPlatform("android28.0")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="Android.Content.ComponentName" />
</Parameters>
<Docs>
<param name="name">The concrete component name of the service whose binding
has been rejected by the Service implementation.</param>
<summary>Called when the service being bound has returned <c>null</c> from its
<c>android.app.Service#onBind(Intent) onBind()</c> method.</summary>
<remarks>
<para>Called when the service being bound has returned <c>null</c> from its
<c>android.app.Service#onBind(Intent) onBind()</c> method. This indicates
that the attempted service binding represented by this ServiceConnection
will never become usable.
<p class="note"><b>Note:</b> The app that requested the binding must still call
<c>Context#unbindService(ServiceConnection)</c> to release the tracking
resources associated with this ServiceConnection even if this callback was
invoked following <c>Context#bindService Context.bindService() bindService()</c>.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ServiceConnection#onNullBinding(android.content.ComponentName)" title="Reference documentation">Java documentation for <code>android.content.ServiceConnection.onNullBinding(android.content.ComponentName)</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="OnServiceConnected">
<MemberSignature Language="C#" Value="public void OnServiceConnected (Android.Content.ComponentName? name, Android.OS.IBinder? service);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnServiceConnected(class Android.Content.ComponentName name, class Android.OS.IBinder service) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.IServiceConnection.OnServiceConnected(Android.Content.ComponentName,Android.OS.IBinder)" />
<MemberSignature Language="F#" Value="abstract member OnServiceConnected : Android.Content.ComponentName * Android.OS.IBinder -> unit" Usage="iServiceConnection.OnServiceConnected (name, service)" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onServiceConnected", "(Landroid/content/ComponentName;Landroid/os/IBinder;)V", "GetOnServiceConnected_Landroid_content_ComponentName_Landroid_os_IBinder_Handler:Android.Content.IServiceConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onServiceConnected", "(Landroid/content/ComponentName;Landroid/os/IBinder;)V", "GetOnServiceConnected_Landroid_content_ComponentName_Landroid_os_IBinder_Handler:Android.Content.IServiceConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="Android.Content.ComponentName" />
<Parameter Name="service" Type="Android.OS.IBinder" />
</Parameters>
<Docs>
<param name="name">The concrete component name of the service that has
been connected.</param>
<param name="service">The IBinder of the Service's communication channel,
which you can now make calls on.</param>
<summary>Called when a connection to the Service has been established, with
the <c>android.os.IBinder</c> of the communication channel to the
Service.</summary>
<remarks>
<para>Called when a connection to the Service has been established, with
the <c>android.os.IBinder</c> of the communication channel to the
Service.
<p class="note"><b>Note:</b> If the system has started to bind your
client app to a service, it's possible that your app will never receive
this callback. Your app won't receive a callback if there's an issue with
the service, such as the service crashing while being created.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ServiceConnection#onServiceConnected(android.content.ComponentName,%20android.os.IBinder)" title="Reference documentation">Java documentation for <code>android.content.ServiceConnection.onServiceConnected(android.content.ComponentName, android.os.IBinder)</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="OnServiceDisconnected">
<MemberSignature Language="C#" Value="public void OnServiceDisconnected (Android.Content.ComponentName? name);" />
<MemberSignature Language="ILAsm" Value=".method public hidebysig newslot virtual instance void OnServiceDisconnected(class Android.Content.ComponentName name) cil managed" />
<MemberSignature Language="DocId" Value="M:Android.Content.IServiceConnection.OnServiceDisconnected(Android.Content.ComponentName)" />
<MemberSignature Language="F#" Value="abstract member OnServiceDisconnected : Android.Content.ComponentName -> unit" Usage="iServiceConnection.OnServiceDisconnected name" />
<MemberType>Method</MemberType>
<AssemblyInfo>
<AssemblyName>Mono.Android</AssemblyName>
<AssemblyVersion>0.0.0.0</AssemblyVersion>
</AssemblyInfo>
<Attributes>
<Attribute>
<AttributeName Language="C#">[Android.Runtime.Register("onServiceDisconnected", "(Landroid/content/ComponentName;)V", "GetOnServiceDisconnected_Landroid_content_ComponentName_Handler:Android.Content.IServiceConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]</AttributeName>
<AttributeName Language="F#">[<Android.Runtime.Register("onServiceDisconnected", "(Landroid/content/ComponentName;)V", "GetOnServiceDisconnected_Landroid_content_ComponentName_Handler:Android.Content.IServiceConnectionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]</AttributeName>
</Attribute>
</Attributes>
<ReturnValue>
<ReturnType>System.Void</ReturnType>
</ReturnValue>
<Parameters>
<Parameter Name="name" Type="Android.Content.ComponentName" />
</Parameters>
<Docs>
<param name="name">The concrete component name of the service whose
connection has been lost.</param>
<summary>Called when a connection to the Service has been lost.</summary>
<remarks>
<para>Called when a connection to the Service has been lost. This typically
happens when the process hosting the service has crashed or been killed.
This does <em>not</em> remove the ServiceConnection itself -- this
binding to the service will remain active, and you will receive a call
to <c>#onServiceConnected</c> when the Service is next running.</para>
<para>
<format type="text/html">
<a href="https://developer.android.com/reference/android/content/ServiceConnection#onServiceDisconnected(android.content.ComponentName)" title="Reference documentation">Java documentation for <code>android.content.ServiceConnection.onServiceDisconnected(android.content.ComponentName)</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>