Partager via


IsolatedService.OnBind(Intent) Method

Definition

Handles binding to the IsolatedService.

[Android.Runtime.Register("onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "GetOnBind_Landroid_content_Intent_Handler", ApiSince=35)]
public override Android.OS.IBinder? OnBind (Android.Content.Intent intent);
[<Android.Runtime.Register("onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "GetOnBind_Landroid_content_Intent_Handler", ApiSince=35)>]
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 android.content.Context#bindService Context.bindService. Note that any extras that were included with the Intent at that point will <em>not</em> be seen here.

Returns

Attributes

Remarks

Handles binding to the IsolatedService.

Java documentation for android.adservices.ondevicepersonalization.IsolatedService.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