LocalCommandClient

public interface LocalCommandClient


Client to make local command related requests.

Use LocalCommandClientFactory to create an instance that communicates with Android Management API client app on device.

Summary

Public methods

abstract @NonNull ListenableFuture<@NonNull Command>

Requests for the status of a command earlier requested to be triggered.

abstract @NonNull Command

Requests for the status of a command earlier requested to be triggered.

abstract @NonNull ListenableFuture<@NonNull Command>

Requests a command to be executed by Android Device Management API.

abstract @NonNull Command

Requests a command to be executed by Android Device Management API.

Public methods

getCommand

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

Requests for the status of a command earlier requested to be triggered.

Returns
@NonNull ListenableFuture<@NonNull Command>

ListenableFuture representing the command status of the command if it was scheduled.

getCommandAwait

abstract @NonNull Command getCommandAwait(@NonNull GetCommandRequest request)

Requests for the status of a command earlier requested to be triggered.

Returns
@NonNull Command

The command status of the command if it was scheduled.

issueCommand

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

Requests a command to be executed by Android Device Management API.

Returns
@NonNull ListenableFuture<@NonNull Command>

ListenableFuture representing the Command if it was scheduled. Returns a failed ListenableFuture if the request failed.

issueCommandAwait

abstract @NonNull Command issueCommandAwait(@NonNull IssueCommandRequest request)

Requests a command to be executed by Android Device Management API.

Returns
@NonNull Command

the Command if it was scheduled.