AppBox 화면 시작 | 초기화 및 화면 | Appbox iOS SDK 가이드

AppBox 화면 시작

AppBox 관리 화면을 지정한 UIViewController에서 시작합니다.

AppBox 화면 시작

AppBox.start(from: UIViewController, completion: ((Bool, NSError?) -> Void)?)

Swift
1 AppBox.start(from: self) { success, error in
2 if !success {
3 print(error?.localizedDescription ?? "AppBox 화면 시작 실패")
4 }
5 }
1 [AppBox startFrom:self completion:^(BOOL success, NSError *error) {
2 if (!success) {
3 NSLog(@"%@", error.localizedDescription ?: @"AppBox 화면 시작 실패");
4 }
5 }];

Request 항목 정의

Request 항목필수여부설명기본값
viewController필수AppBox 화면을 표시할 UIViewController-
completion선택화면 시작 요청 처리 결과nil

Response 항목 정의

Response 결과값
success화면 시작 요청이 SDK에 전달되면 true
error시작 요청 실패 원인


webView 초기화 결과가 .INITIALIZED인지 먼저 확인합니다. UI를 표시할 수 있는 시점에 현재 화면 계층의 view controller를 전달합니다. success == true는 웹 페이지 로딩 완료를 의미하지 않습니다.

www.naver.com
QR 코드를 촬영하면 입력하신 주소의
앱 예시 화면을 테스트할 수 있습니다.
* 스캔 후 바로 앱 다운로드 이동합니다.