PropertyFetcher

public final class PropertyFetcher
extends Object

java.lang.Object
   ↳ com.android.ddmlib.PropertyFetcher


從裝置擷取並快取「getprop」值。

摘要

公用建構函式

PropertyFetcher(IDevice device)

公用方法

boolean arePropertiesSet()

這個方法已淘汰。 實作詳細資料

static void enableCachingMutableProps(boolean enabled)
getProperties()

傳回快取屬性的完整清單。

ListenableFuture<String> getProperty(String name)

可能非同步要求系統屬性值。

公用建構函式

PropertyFetcher

public PropertyFetcher (IDevice device)

參數
device IDevice

公用方法

arePropertiesSet

public boolean arePropertiesSet ()

這個方法已淘汰。
實作詳細資料

如果快取已填入資料,則傳回 true。

傳回
boolean

enableCachingMutableProps

public static void enableCachingMutableProps (boolean enabled)

參數
enabled boolean

getProperties

public  getProperties ()

傳回快取屬性的完整清單。

傳回

getProperty

public ListenableFuture<String> getProperty (String name)

發出系統屬性值的可能非同步要求。

參數
name String:要擷取的屬性名稱

傳回
ListenableFuture<String> 可用於擷取屬性值的 ERROR(/Future)