디바이스 모델 | 앱 기본 정보 및 환경체크 | Appbox iOS SDK 가이드
디바이스 모델
디바이스 모델 가져오기
AppBox.shared.getDeviceModel(completion:)
Swift
1
AppBox.shared.getDeviceModel { value, error in
2
guard error == nil else { return }
3
print(value)
4
}
1
[AppBox.shared getDeviceModelWithCompletion:^(NSString *value, NSError *error) {
2
if (error) { return; }
3
NSLog(@"%@", value);
4
}];
Request 항목 정의
| Request 항목 | 필수여부 | 설명 | 기본값 |
|---|---|---|---|
completion | 필수 | 결과를 받는 콜백. 메인 스레드에서 한 번 호출됩니다 | - |
Response 항목 정의
| Response 결과값 | |
|---|---|
| 값 | String? |
| 오류 | 실패 원인. NSError |
화면 불필요. 기기 식별자입니다. 마케팅 제품명과 다를 수 있습니다
웹 브릿지에서는 디바이스 모델의 application.getDeviceModel입니다.