ConditionProviderService.OnBind(Intent) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Caution
deprecated
Return the communication channel to the service.
[Android.Runtime.Register("onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "GetOnBind_Landroid_content_Intent_Handler", ApiSince=24)]
[System.Obsolete("deprecated")]
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=24)>]
[<System.Obsolete("deprecated")>]
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.
Returns
Return an IBinder through which clients can call on to the service.
- Attributes
Remarks
The default implementation returns a binder for the condition provider. An override may return null if clients cannot bind to the service.
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.notification.ConditionProviderService.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.