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)