Android Guides | Samples

Android.Content.IServiceConnection

Interface for monitoring the state of an application service.

See Also: IServiceConnection

Syntax

[Android.Runtime.Register("android/content/ServiceConnection", "", "Android.Content.IServiceConnectionInvoker")]
public interface IServiceConnection : IJavaObject, IDisposable

Remarks

Interface for monitoring the state of an application service. See Service and Context.BindService(Intent,IServiceConnection,IServiceConnection) for more information.

Like many callbacks from the system, the methods on this class are called from the main thread of your process.

[Android Documentation]

Requirements

Namespace: Android.Content
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1

The members of Android.Content.IServiceConnection are listed below.

Public Methods

OnServiceConnected(ComponentName, IBinder)
Called when a connection to the Service has been established, with the BinderConsts of the communication channel to the Service.
OnServiceDisconnected(ComponentName)
Called when a connection to the Service has been lost.