IServiceConnection Interface

Definition

Interface for monitoring the state of an application service.

[Android.Runtime.Register("android/content/ServiceConnection", "", "Android.Content.IServiceConnectionInvoker")]
public interface IServiceConnection : Android.Runtime.IJavaObject, IDisposable, Java.Interop.IJavaPeerable
[<Android.Runtime.Register("android/content/ServiceConnection", "", "Android.Content.IServiceConnectionInvoker")>]
type IServiceConnection = interface
    interface IJavaObject
    interface IDisposable
    interface IJavaPeerable
Derived
Attributes
Implements

Remarks

Java documentation for android.content.ServiceConnection.

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.

Properties

Handle

Gets the JNI value of the underlying Android object.

(Inherited from IJavaObject)
JniIdentityHashCode (Inherited from IJavaPeerable)
JniManagedPeerState (Inherited from IJavaPeerable)
JniPeerMembers (Inherited from IJavaPeerable)
PeerReference (Inherited from IJavaPeerable)

Methods

Disposed() (Inherited from IJavaPeerable)
DisposeUnlessReferenced() (Inherited from IJavaPeerable)
Finalized() (Inherited from IJavaPeerable)
OnBindingDied(ComponentName)

Called when the binding to this connection is dead.

OnNullBinding(ComponentName)

Called when the service being bound has returned null from its android.app.Service#onBind(Intent) onBind() method.

OnServiceConnected(ComponentName, IBinder)

Called when a connection to the Service has been established, with the android.os.IBinder of the communication channel to the Service.

OnServiceDisconnected(ComponentName)

Called when a connection to the Service has been lost.

SetJniIdentityHashCode(Int32) (Inherited from IJavaPeerable)
SetJniManagedPeerState(JniManagedPeerStates) (Inherited from IJavaPeerable)
SetPeerReference(JniObjectReference) (Inherited from IJavaPeerable)
UnregisterFromRuntime() (Inherited from IJavaPeerable)

Extension Methods

JavaCast<TResult>(IJavaObject)

Performs an Android runtime-checked type conversion.

JavaCast<TResult>(IJavaObject)
GetJniTypeName(IJavaPeerable)

Applies to