LocalCommandClient

public interface LocalCommandClient


用戶端發出與本機指令相關的要求。

使用 LocalCommandClientFactory 建立例項,與裝置上的 Android Management API 用戶端應用程式通訊。

摘要

巢狀型別

提供 InstallCustomApp 指令的公用程式。

公用方法

abstract @NonNull ListenableFuture<@NonNull Command>

要求先前觸發的指令狀態。

abstract @NonNull Command

要求先前觸發的指令狀態。

abstract @NonNull LocalCommandClient.InstallCustomAppCommandHelper

傳回 InstallCustomAppCommandHelper 執行個體,可用於取得自訂 APK 儲存目錄。

abstract @NonNull ListenableFuture<@NonNull Command>

要求 Android 裝置管理 API 執行指令。

abstract @NonNull Command

要求 Android 裝置管理 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

如果指令已排定時間執行,則為指令的指令狀態。

getInstallCustomAppCommandHelper

abstract @NonNull LocalCommandClient.InstallCustomAppCommandHelper getInstallCustomAppCommandHelper()

傳回 InstallCustomAppCommandHelper 執行個體,可用於取得自訂 APK 儲存目錄。

issueCommand

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

要求 Android 裝置管理 API 執行指令。

傳回
@NonNull ListenableFuture<@NonNull Command>

ListenableFuture,代表排定的 Command。如果要求失敗,則傳回失敗的 ListenableFuture

issueCommandAwait

abstract @NonNull Command issueCommandAwait(@NonNull IssueCommandRequest request)

要求 Android 裝置管理 API 執行指令。

傳回
@NonNull Command

如果已排定時間,則為 Command