AppBox Device Info | 앱 기본 정보 및 환경체크 | Appbox iOS SDK 가이드
AppBox Device Info
AppBox Device Info 가져오기
AppBox.shared.getDeviceInfo(completion:)
Swift
1
AppBox.shared.getDeviceInfo { value, error in
2
guard error == nil else { return }
3
print(value)
4
}
1
[AppBox.shared getDeviceInfoWithCompletion:^(NSDictionary *value, NSError *error) {
2
if (error) { return; }
3
NSLog(@"%@", value);
4
}];
Request 항목 정의
| Request 항목 | 필수여부 | 설명 | 기본값 |
|---|---|---|---|
completion | 필수 | 결과를 받는 콜백. 메인 스레드에서 한 번 호출됩니다 | - |
Response 항목 정의
| Response 결과값 | |
|---|---|
| 값 | [String: Any]? |
| 오류 | 실패 원인. NSError |
화면 불필요. 키는 deviceUserId, pushToken.
웹 브릿지에서는 AppBox Device Info의 getDeviceInfo입니다.