디바이스 모델 | 앱 기본 정보 및 환경체크 | Appbox Android SDK 가이드
디바이스 모델
getDeviceModel(callback)
호출 형태: 패턴 A(인자 없는 값 조회).
디바이스 모델 가져오기
AppBox.getDeviceModel(callback)
Kotlin
1
AppBox.getDeviceModel { value, error ->
2
if (error != null) return@getDeviceModel
3
Log.d("AppBox", value.toString())
4
}
1
AppBox.getDeviceModel((value, error) -> {
2
if (error != null) return;
3
Log.d("AppBox", String.valueOf(value));
4
});
Request 항목 정의
| Request 항목 | 필수여부 | 설명 | 기본값 |
|---|---|---|---|
| - | - | 별도 요청 항목 없음 | - |
Response 항목 정의
| Response 결과값 | |
|---|---|
| 값 | 기기 모델명 (String) |
Build.MODEL 값입니다. 마케팅 제품명과 다를 수 있습니다.
웹 브릿지에서는 디바이스 모델의 application.getDeviceModel입니다.