Language

ConnectionService.OnBind(Intent) Method

Definition

Returns the communication channel through which clients can call the service.

[Android.Runtime.Register("onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "", ApiSince=23)]
public override sealed Android.OS.IBinder? OnBind(Android.Content.Intent? intent);
[<Android.Runtime.Register("onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "", ApiSince=23)>]
override this.OnBind : Android.Content.Intent -> Android.OS.IBinder

Parameters

intent
Intent

The Intent that was used to bind to this service, as given to Context.bindService. Note that any extras that were included with the Intent at that point will not be seen here.

Returns

The IBinder through which clients communicate with the service.

Attributes

Remarks

Returns the communication channel through which clients can call the service. The returned IBinder is usually for a complex interface described using AIDL.

Java documentation for android.telecom.ConnectionService.onBind(android.content.Intent).

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