Language

AppFunctionManager.GetAppFunctionStates メソッド

定義

指定したアプリ関数のランタイム状態を取得します。

[Android.Runtime.Register("getAppFunctionStates", "(Ljava/util/List;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=37)]
public void GetAppFunctionStates(System.Collections.Generic.IList<Android.App.AppFunctions.AppFunctionName> appFunctionNames, Java.Util.Concurrent.IExecutor executor, Android.OS.IOutcomeReceiver callback);
[<Android.Runtime.Register("getAppFunctionStates", "(Ljava/util/List;Ljava/util/concurrent/Executor;Landroid/os/OutcomeReceiver;)V", "", ApiSince=37)>]
member this.GetAppFunctionStates : System.Collections.Generic.IList<Android.App.AppFunctions.AppFunctionName> * Java.Util.Concurrent.IExecutor * Android.OS.IOutcomeReceiver -> unit

パラメーター

appFunctionNames
IList<AppFunctionName>

状態を要求するアプリ関数の名前。 この値は null にすることはできません。

executor
IExecutor

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

callback
IOutcomeReceiver

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

属性

注釈

指定したアプリ関数のランタイム状態を取得します。

これには、関数が現在有効か無効かなどのランタイム変更プロパティが含まれます。 存在しない関数または呼び出し元アプリケーションに表示されない関数は、結果一覧から暗黙的に省略されます。

このメソッドは、searchAppFunctions(AppFunctionSearchSpec、Executor、OutcomeReceiver) と同じアクセス許可規則に従います。

特定のアクティビティに関連付けられているアプリ関数の状態を取得するには、getAppFunctionActivityStates(Set、Executor、OutcomeReceiver) を参照してください。

アプリ関数の AppFunctionMetadata を取得する方法については、searchAppFunctions(AppFunctionSearchSpec、Executor、OutcomeReceiver) を参照してください。

アプリ関数の AppFunctionMetadata と AppFunctionStates の変更を監視するには、observAppFunctions(Executor、AppFunctionObserver) を参照してください。

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

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

適用対象