interface LocalCommandClient
com.google.android.managementapi.commands.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 ListenableFuture<Command> |
getCommand(request: GetCommandRequest) Requests for the status of a command earlier requested to be triggered. |
abstract ListenableFuture<Command> |
issueCommand(request: IssueCommandRequest) Requests a command to be executed by Android Device Management API. |
Public methods
getCommand
abstract fun getCommand(request: GetCommandRequest): ListenableFuture<Command>
Requests for the status of a command earlier requested to be triggered.
Return | |
---|---|
ListenableFuture | representing the command status of the command if it was scheduled. |
issueCommand
abstract fun issueCommand(request: IssueCommandRequest): ListenableFuture<Command>
Requests a command to be executed by Android Device Management API.
Return | |
---|---|
ListenableFuture | representing the Command if it was scheduled. Returns a failed ListenableFuture if the request failed. |