AppFunctionService.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.
Gets the Binder interface used by the system to execute app functions.
[Android.Runtime.Register("onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "", ApiSince=36)]
public override sealed Android.OS.IBinder OnBind(Android.Content.Intent? intent);
[<Android.Runtime.Register("onBind", "(Landroid/content/Intent;)Landroid/os/IBinder;", "", ApiSince=36)>]
override this.OnBind : Android.Content.Intent -> Android.OS.IBinder
Parameters
- intent
- Intent
The intent supplied when the system binds to this service. This implementation does not read it.
Returns
The service's app-function Binder interface.
- Attributes
Remarks
This method returns the same Binder instance for each binding and does not use intent. Function requests received through this interface are dispatched to OnExecuteFunction(ExecuteAppFunctionRequest, String, SigningInfo, CancellationSignal, IOutcomeReceiver) on the main thread.