Language

ControlsProviderService.OnBind(Intent) Method

Definition

Return the communication channel to the service.

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

Parameters

intent
Intent

The system binding intent, including the callback bundle and token for the controls connection.

Returns

The non-null binder that receives controls requests from the system.

Attributes

Remarks

Return the communication channel to the service.

The returned IBinder is usually for a complex interface that has been described using aidl.

Note that unlike other application components, calls on to the IBinder interface returned here may not happen on the main thread of the process. More information about the main thread can be found in Processes and Threads.

Android reference for android.service.controls.ControlsProviderService.onBind.

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