IServiceConnection IServiceConnection Interface

Definition

Interface for monitoring the state of an application service.

[Android.Runtime.Register("android/content/ServiceConnection", "", "Android.Content.IServiceConnectionInvoker", ApiSince=1)]
public interface IServiceConnection : Android.Runtime.IJavaObject, IDisposable
type IServiceConnection = interface
    interface IJavaObject
    interface IDisposable
Derived
Attributes
Implements

Remarks

Android platform documentation

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.

Methods

OnServiceConnected(ComponentName, IBinder) 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) OnServiceDisconnected(ComponentName)

Called when a connection to the Service has been lost.

Properties

Handle Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)

Extension Methods

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject) JavaCast<TResult>(IJavaObject)

Applies to