LocalCommandClient

public interface LocalCommandClient


Máy khách gửi các yêu cầu liên quan đến lệnh cục bộ.

Sử dụng LocalCommandClientFactory để tạo một phiên bản giao tiếp với ứng dụng Android Management API client trên thiết bị.

Tóm tắt

Các loại lồng nhau

Cung cấp các tiện ích cho lệnh InstallCustomApp.

Phương thức công khai

abstract @NonNull ListenableFuture<@NonNull Command>

Yêu cầu về trạng thái của một lệnh đã được yêu cầu kích hoạt trước đó.

abstract @NonNull Command

Yêu cầu về trạng thái của một lệnh đã được yêu cầu kích hoạt trước đó.

abstract @NonNull LocalCommandClient.InstallCustomAppCommandHelper

Trả về một thực thể InstallCustomAppCommandHelper mà bạn có thể dùng để lấy thư mục lưu trữ apk tuỳ chỉnh.

abstract @NonNull ListenableFuture<@NonNull Command>

Yêu cầu Android Device Management API thực thi một lệnh.

abstract @NonNull Command

Yêu cầu Android Device Management API thực thi một lệnh.

Phương thức công khai

getCommand

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

Yêu cầu về trạng thái của một lệnh đã được yêu cầu kích hoạt trước đó.

Giá trị trả về
@NonNull ListenableFuture<@NonNull Command>

ListenableFuture đại diện cho trạng thái lệnh của lệnh nếu lệnh đó được lên lịch.

getCommandAwait

abstract @NonNull Command getCommandAwait(@NonNull GetCommandRequest request)

Yêu cầu về trạng thái của một lệnh đã được yêu cầu kích hoạt trước đó.

Giá trị trả về
@NonNull Command

Trạng thái lệnh của lệnh nếu lệnh đó được lên lịch.

Gửi
com.google.android.managementapi.commands.CommandException

nếu yêu cầu không thành công.

getInstallCustomAppCommandHelper

abstract @NonNull LocalCommandClient.InstallCustomAppCommandHelper getInstallCustomAppCommandHelper()

Trả về một thực thể InstallCustomAppCommandHelper mà bạn có thể dùng để lấy thư mục lưu trữ apk tuỳ chỉnh.

issueCommand

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

Yêu cầu Android Device Management API thực thi một lệnh.

Giá trị trả về
@NonNull ListenableFuture<@NonNull Command>

ListenableFuture đại diện cho Command nếu được lên lịch. Trả về ListenableFuture không thành công nếu yêu cầu không thành công.

issueCommandAwait

abstract @NonNull Command issueCommandAwait(@NonNull IssueCommandRequest request)

Yêu cầu Android Device Management API thực thi một lệnh.

Giá trị trả về
@NonNull Command

Command nếu được lên lịch.

Gửi
com.google.android.managementapi.commands.CommandException

nếu yêu cầu không thành công.