Język

IAppFunction.OnExecuteAppFunction Method

Definition

Called when the app function is invoked using AppFunctionManager#executeAppFunction.

[Android.Runtime.Register("onExecuteAppFunction", "(Landroid/app/appfunctions/ExecuteAppFunctionRequest;Landroid/os/CancellationSignal;Landroid/os/OutcomeReceiver;)V", "GetOnExecuteAppFunction_Landroid_app_appfunctions_ExecuteAppFunctionRequest_Landroid_os_CancellationSignal_Landroid_os_OutcomeReceiver_Handler:Android.App.AppFunctions.IAppFunctionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)]
public void OnExecuteAppFunction(Android.App.AppFunctions.ExecuteAppFunctionRequest p0, Android.OS.CancellationSignal p1, Android.OS.IOutcomeReceiver p2);
[<Android.Runtime.Register("onExecuteAppFunction", "(Landroid/app/appfunctions/ExecuteAppFunctionRequest;Landroid/os/CancellationSignal;Landroid/os/OutcomeReceiver;)V", "GetOnExecuteAppFunction_Landroid_app_appfunctions_ExecuteAppFunctionRequest_Landroid_os_CancellationSignal_Landroid_os_OutcomeReceiver_Handler:Android.App.AppFunctions.IAppFunctionInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=37)>]
abstract member OnExecuteAppFunction : Android.App.AppFunctions.ExecuteAppFunctionRequest * Android.OS.CancellationSignal * Android.OS.IOutcomeReceiver -> unit

Parameters

p0
ExecuteAppFunctionRequest

The ExecuteAppFunctionRequest containing the parameters for this execution.

p1
CancellationSignal

A signal to cancel the execution.

p2
IOutcomeReceiver

The OutcomeReceiver that the implementation must use to return the result of the execution. It must be called exactly once with either a successful ExecuteAppFunctionResponse or an AppFunctionException in case of an error.

Attributes

Remarks

Called when the app function is invoked using AppFunctionManager.executeAppFunction.

The implementation should try to respect the provided CancellationSignal, if possible.

Android reference for android.app.appfunctions.AppFunction.onExecuteAppFunction.

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