Language

AppFunctionManager.ExecuteAppFunction メソッド

定義

オーバーロード

ExecuteAppFunction(ExecuteAppFunctionRequest, IExecutor, CancellationSignal, IOutcomeReceiver)

アプリ関数を実行します。

[Android.Runtime.Register("executeAppFunction", "(Landroid/app/appfunctions/ExecuteAppFunctionRequest;Ljava/util/concurrent/Executor;Landroid/os/CancellationSignal;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)]
public void ExecuteAppFunction(Android.App.AppFunctions.ExecuteAppFunctionRequest request, Java.Util.Concurrent.IExecutor executor, Android.OS.CancellationSignal cancellationSignal, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("executeAppFunction", "(Landroid/app/appfunctions/ExecuteAppFunctionRequest;Ljava/util/concurrent/Executor;Landroid/os/CancellationSignal;Landroid/os/OutcomeReceiver;)V", "", ApiSince=36)>]
member this.ExecuteAppFunction : Android.App.AppFunctions.ExecuteAppFunctionRequest * Java.Util.Concurrent.IExecutor * Android.OS.CancellationSignal * Android.OS.IOutcomeReceiver -> unit

パラメーター

request
ExecuteAppFunctionRequest

アプリ関数を実行する要求

executor
IExecutor

コールバックを実行する Executor

cancellationSignal
CancellationSignal

実行を取り消すキャンセルシグナル。

callback
IOutcomeReceiver

関数の実行結果またはエラーを受け取るコールバック。 <p>呼び出し元のアプリがアプリ関数を所有していないか、 android.permission.EXECUTE_APP_FUNCTIONSがない場合、実行結果には AppFunctionException.ERROR_DENIEDが含まれます。 <p>呼び出し元が android.permission.EXECUTE_APP_FUNCTIONSした場合、実行結果には AppFunctionException.ERROR_DENIED<pが含まれます>実行要求された関数が無効になっている場合、実行結果には AppFunctionException.ERROR_DISABLED<pが含まれます>キャンセルシグナルが発行された場合、操作は取り消され、呼び出し元への応答は返されません。

属性

注釈

アプリ関数を実行します。

注: アプリケーションは、定義した関数を実行できます。 別のコンポーネントで定義されている関数を実行するには、アプリに android.permission.EXECUTE_APP_FUNCTIONSアクセス許可が必要です。

Javaドキュメント。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象

ExecuteAppFunction(AppInteractionSession, ExecuteAppFunctionRequest, IExecutor, CancellationSignal, IOutcomeReceiver)

AppInteractionSession を使用してアプリ関数を実行します。

[Android.Runtime.Register("executeAppFunction", "(Landroid/app/AppInteractionSession;Landroid/app/appfunctions/ExecuteAppFunctionRequest;Ljava/util/concurrent/Executor;Landroid/os/CancellationSignal;Landroid/os/OutcomeReceiver;)V", "", ApiSince=37)]
public void ExecuteAppFunction(Android.App.AppInteractionSession appInteractionSession, Android.App.AppFunctions.ExecuteAppFunctionRequest request, Java.Util.Concurrent.IExecutor executor, Android.OS.CancellationSignal cancellationSignal, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("executeAppFunction", "(Landroid/app/AppInteractionSession;Landroid/app/appfunctions/ExecuteAppFunctionRequest;Ljava/util/concurrent/Executor;Landroid/os/CancellationSignal;Landroid/os/OutcomeReceiver;)V", "", ApiSince=37)>]
member this.ExecuteAppFunction : Android.App.AppInteractionSession * Android.App.AppFunctions.ExecuteAppFunctionRequest * Java.Util.Concurrent.IExecutor * Android.OS.CancellationSignal * Android.OS.IOutcomeReceiver -> unit

パラメーター

appInteractionSession
AppInteractionSession

関数の実行に関連付けるアプリ操作セッション。 この値は null にすることはできません。

request
ExecuteAppFunctionRequest

アプリ関数を実行する要求。 この値は null にすることはできません。

executor
IExecutor

コールバックを実行する Executor。 この値は null にすることはできません。 コールバック イベントとリスナー イベントは、この Executor を介してディスパッチされるため、使用するスレッドを簡単に制御できます。 アプリケーションのメイン スレッドを介してイベントをディスパッチするには、Context.getMainExecutor() を使用できます。 それ以外の場合は、適切なスレッドにディスパッチする Executor を指定します。

cancellationSignal
CancellationSignal

実行を取り消すキャンセルシグナル。 この値は null にすることはできません。

callback
IOutcomeReceiver

関数の実行結果またはエラーを受け取るコールバック。 この値は null にすることはできません。

属性

注釈

AppInteractionSession を使用してアプリ関数を実行します。

アプリケーションは、定義した関数を実行できます。 別のコンポーネントで定義されている関数を実行するには、呼び出し元にManifest.permission.EXECUTE_APP_FUNCTIONSまたはandroid.permission.EXECUTE_APP_FUNCTIONS_SYSTEMのアクセス許可が必要です。

関数は、AppFunctionState.isEnabled が true の場合にのみ実行できます。

考えられるエラーについては、AppFunctionException を参照してください。

android.app.appfunctions.AppFunctionManager.executeAppFunctionの Android リファレンス。

このページの一部は、によって作成および共有され、に記載されている条件に従って使用される作業に基づく変更です。

適用対象