LocalCommandClient

interface LocalCommandClient


İstemcinin yerel komutlarla ilgili isteklerde bulunması.

Cihazdaki Android Management API istemci uygulamasıyla iletişim kuran bir örnek oluşturmak için LocalCommandClientFactory kullanın.

Özet

İç içe yerleştirilmiş türler

InstallCustomApp komutu için yardımcı programlar sağlar.

Herkese açık işlevler

ListenableFuture<Command>

Daha önce tetiklenmesi istenen bir komutun durumuyla ilgili istekler.

suspend Command

Daha önce tetiklenmesi istenen bir komutun durumuyla ilgili istekler.

LocalCommandClient.InstallCustomAppCommandHelper

Özel APK'ların depolama dizinini almak için kullanılabilecek bir InstallCustomAppCommandHelper örneği döndürür.

ListenableFuture<Command>

Android Device Management API tarafından bir komutun yürütülmesini ister.

suspend Command

Android Device Management API tarafından bir komutun yürütülmesini ister.

Herkese açık işlevler

getCommand

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

Daha önce tetiklenmesi istenen bir komutun durumuyla ilgili istekler.

İadeler
ListenableFuture<Command>

ListenableFuture, komutun planlanması durumunda komut durumunu gösterir.

getCommandAwait

suspend fun getCommandAwait(request: GetCommandRequest): Command

Daha önce tetiklenmesi istenen bir komutun durumuyla ilgili istekler.

İadeler
Command

Komutun planlanmış olması durumunda komutun durumu.

Verdiği hatalar
com.google.android.managementapi.commands.CommandException

İstek başarısız olduysa.

getInstallCustomAppCommandHelper

fun getInstallCustomAppCommandHelper(): LocalCommandClient.InstallCustomAppCommandHelper

Özel APK'ların depolama dizinini almak için kullanılabilecek bir InstallCustomAppCommandHelper örneği döndürür.

issueCommand

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

Android Device Management API tarafından bir komutun yürütülmesini ister.

İadeler
ListenableFuture<Command>

Planlanmışsa Command öğesini temsil eden ListenableFuture. İstek başarısız olursa başarısız (failed) ListenableFuture değerini döndürür.

issueCommandAwait

suspend fun issueCommandAwait(request: IssueCommandRequest): Command

Android Device Management API tarafından bir komutun yürütülmesini ister.

İadeler
Command

Planlandıysa Command.

Verdiği hatalar
com.google.android.managementapi.commands.CommandException

İstek başarısız olduysa.