Udostępnij za pośrednictwem


IServiceConnection.OnServiceDisconnected(ComponentName) Method

Definition

Called when a connection to the Service has been lost.

[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")]
public void OnServiceDisconnected (Android.Content.ComponentName? name);
[<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")>]
abstract member OnServiceDisconnected : Android.Content.ComponentName -> unit

Parameters

name
ComponentName

The concrete component name of the service whose connection has been lost.

Attributes

Remarks

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 #onServiceConnected when the Service is next running.

Java documentation for android.content.ServiceConnection.onServiceDisconnected(android.content.ComponentName).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to