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 ()

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

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

คิกรีเทิร์น
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)ที่ใช้ดึงค่าพร็อพได้