LocalCommandClient

public interface LocalCommandClient


ローカル コマンド関連のリクエストを行うクライアント。

LocalCommandClientFactory を使用して、デバイス上の Android Management API クライアント アプリと通信するインスタンスを作成します。

概要

ネストされた型

InstallCustomApp コマンドのユーティリティを提供します。

パブリック メソッド

abstract @NonNull ListenableFuture<@NonNull Command>

トリガーをリクエストしたコマンドのステータスをリクエストします。

abstract @NonNull Command

トリガーをリクエストしたコマンドのステータスをリクエストします。

abstract @NonNull LocalCommandClient.InstallCustomAppCommandHelper

カスタム APK のストレージ ディレクトリを取得するために使用できる InstallCustomAppCommandHelper インスタンスを返します。

abstract @NonNull ListenableFuture<@NonNull Command>

Android Device Management API で実行するコマンドをリクエストします。

abstract @NonNull Command

Android Device Management API で実行するコマンドをリクエストします。

パブリック メソッド

getCommand

abstract @NonNull ListenableFuture<@NonNull CommandgetCommand(@NonNull GetCommandRequest request)

トリガーをリクエストしたコマンドのステータスをリクエストします。

戻り値
@NonNull ListenableFuture<@NonNull Command>

コマンドがスケジュールされている場合、コマンドのステータスを表す ListenableFuture

getCommandAwait

abstract @NonNull Command getCommandAwait(@NonNull GetCommandRequest request)

トリガーをリクエストしたコマンドのステータスをリクエストします。

戻り値
@NonNull Command

コマンドがスケジュール設定されている場合のコマンドのステータス。

例外
com.google.android.managementapi.commands.CommandException

リクエストが失敗した場合。

getInstallCustomAppCommandHelper

abstract @NonNull LocalCommandClient.InstallCustomAppCommandHelper getInstallCustomAppCommandHelper()

カスタム APK のストレージ ディレクトリを取得するために使用できる InstallCustomAppCommandHelper インスタンスを返します。

issueCommand

abstract @NonNull ListenableFuture<@NonNull CommandissueCommand(@NonNull IssueCommandRequest request)

Android Device Management API で実行するコマンドをリクエストします。

戻り値
@NonNull ListenableFuture<@NonNull Command>

スケジュールされた場合は Command を表す ListenableFuture。リクエストが失敗した場合は、失敗した ListenableFuture を返します。

issueCommandAwait

abstract @NonNull Command issueCommandAwait(@NonNull IssueCommandRequest request)

Android Device Management API で実行するコマンドをリクエストします。

戻り値
@NonNull Command

スケジュールされていた場合は Command

例外
com.google.android.managementapi.commands.CommandException

リクエストが失敗した場合。