AppVersionFetcher
public final class AppVersionFetcher
extends Object
java.lang.Nesne | |
↳ | com.android.tradefed.util.AppVersionFetcher |
Cihazdan uygulama sürümü dizesini almak için yardımcı program sınıfı.
Aygıta dumpsys paketi komutunu gönderin, ardından dönüş sonucu dizesini ayrıştırın.
Özet
iç içe sınıflar | |
---|---|
enum | AppVersionFetcher.AppVersionInfo Uygulama sürümü bilgisi türleri. |
Kamu inşaatçıları | |
---|---|
AppVersionFetcher () |
Genel yöntemler | |
---|---|
static String | fetch ( ITestDevice device, String packageName, AppVersionFetcher.AppVersionInfo info) Paket adına göre uygulama sürümü dizesini getir. |
Kamu inşaatçıları
AppVersionFetcher
public AppVersionFetcher ()
Genel yöntemler
gidip getirmek
public static String fetch (ITestDevice device, String packageName, AppVersionFetcher.AppVersionInfo info)
Paket adına göre uygulama sürümü dizesini getir.
parametreler | |
---|---|
device | ITestDevice : ITestDevice, cihaz örneği |
packageName | String : Dize, paket adı |
info | AppVersionFetcher.AppVersionInfo : AppVersionInfo, uygulama sürümü bilgisi türü |
İadeler | |
---|---|
String | paketin sürüm dizesi |
atar | |
---|---|
DeviceNotAvailableException |
Bu sayfadaki içerik ve kod örnekleri, İçerik Lisansı sayfasında açıklanan lisanslara tabidir. Java ve OpenJDK, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2022-08-15 UTC.
[]
[]