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)
Map<String, String> getProperties()

แสดงผลรายการพร็อพเพอร์ตี้ที่แคชไว้ทั้งหมด

ListenableFuture<String> getProperty(String name)

สร้างคำขอแบบอะซิงโครนัสที่เป็นไปได้สำหรับค่าพร็อพเพอร์ตี้ของระบบ

เครื่องมือสร้างสาธารณะ

PropertyFetcher

public PropertyFetcher (IDevice device)

พารามิเตอร์
device IDevice

เมธอดสาธารณะ

arePropertiesSet

public boolean arePropertiesSet ()

เลิกใช้เมธอดนี้แล้ว
รายละเอียดการใช้งาน

แสดงค่าเป็นจริงหากแคชมีข้อมูล

การคืนสินค้า
boolean

enableCachingMutableProps

public static void enableCachingMutableProps (boolean enabled)

พารามิเตอร์
enabled boolean

getProperties

public Map<String, String> getProperties ()

แสดงผลรายการพร็อพเพอร์ตี้ที่แคชไว้ทั้งหมด

การคืนสินค้า
Map<String, String>

getProperty

public ListenableFuture<String> getProperty (String name)

สร้างคำขอแบบอะซิงโครนัสที่เป็นไปได้สำหรับค่าพร็อพเพอร์ตี้ของระบบ

พารามิเตอร์
name String: ชื่อพร็อพเพอร์ตี้ที่จะดึงข้อมูล

การคืนสินค้า
ListenableFuture<String> Future ที่ใช้เพื่อดึงค่าพร็อพ