LocalCommandClient

interface LocalCommandClient


클라이언트가 로컬 명령 관련 요청을 합니다.

LocalCommandClientFactory를 사용하여 기기에서 Android Management API 클라이언트 앱과 통신하는 인스턴스를 만듭니다.

요약

중첩된 유형

InstallCustomApp 명령어의 유틸리티를 제공합니다.

공개 함수

ListenableFuture<Command>

이전에 트리거하도록 요청된 명령어의 상태를 요청합니다.

suspend Command

이전에 트리거하도록 요청된 명령어의 상태를 요청합니다.

LocalCommandClient.InstallCustomAppCommandHelper

맞춤 APK 저장소 디렉터리를 가져오는 데 사용할 수 있는 InstallCustomAppCommandHelper 인스턴스를 반환합니다.

ListenableFuture<Command>

Android 기기 관리 API에서 실행할 명령어를 요청합니다.

suspend Command

Android 기기 관리 API에서 실행할 명령어를 요청합니다.

공개 함수

getCommand

fun getCommand(request: GetCommandRequest): ListenableFuture<Command>

이전에 트리거하도록 요청된 명령어의 상태를 요청합니다.

반환 값
ListenableFuture<Command>

명령어가 예약된 경우 명령어의 명령어 상태를 나타내는 ListenableFuture

getCommandAwait

suspend fun getCommandAwait(request: GetCommandRequest): Command

이전에 트리거하도록 요청된 명령어의 상태를 요청합니다.

반환 값
Command

명령어가 예약된 경우 명령어의 명령어 상태입니다.

생성 값
com.google.android.managementapi.commands.CommandException

요청이 실패한 경우

getInstallCustomAppCommandHelper

fun getInstallCustomAppCommandHelper(): LocalCommandClient.InstallCustomAppCommandHelper

맞춤 APK 저장소 디렉터리를 가져오는 데 사용할 수 있는 InstallCustomAppCommandHelper 인스턴스를 반환합니다.

issueCommand

fun issueCommand(request: IssueCommandRequest): ListenableFuture<Command>

Android 기기 관리 API에서 실행할 명령어를 요청합니다.

반환 값
ListenableFuture<Command>

예약된 경우 Command을 나타내는 ListenableFuture입니다. 요청이 실패한 경우 실패한 ListenableFuture를 반환합니다.

issueCommandAwait

suspend fun issueCommandAwait(request: IssueCommandRequest): Command

Android 기기 관리 API에서 실행할 명령어를 요청합니다.

반환 값
Command

예약된 경우 Command

생성 값
com.google.android.managementapi.commands.CommandException

요청이 실패한 경우