QR 보기 팝업 | 스캔 및 코드 생성 | Appbox Android SDK 가이드
QR 보기 팝업
qrcodePopupOpen(qr, haptic?, animation?, callback)
호출 형태: 패턴 D(선택 인자가 여러 개인 함수). 실행 중에 다시 호출하면 거절됩니다.
QR을 팝업으로 노출
AppBox.qrcodePopupOpen(qr, haptic, animation, callback)
Kotlin
1
AppBox.qrcodePopupOpen(qr = "https://appboxapp.com", haptic = true, animation = true) { value, error ->
2
if (error != null) return@qrcodePopupOpen
3
Log.d("AppBox", value.toString())
4
}
1
AppBox.qrcodePopupOpen("https://appboxapp.com", true, true, (value, error) -> {
2
if (error != null) return;
3
Log.d("AppBox", String.valueOf(value));
4
});
Request 항목 정의
| Request 항목 | 필수여부 | 설명 | 기본값 |
|---|---|---|---|
qr | 필수 | QR로 그릴 문자열 | - |
haptic | - | 표시할 때 진동 여부 | true |
animation | - | 표시 애니메이션 사용 여부 | true |
Response 항목 정의
| Response 결과값 | |
|---|---|
| 값 | 성공 여부 (Boolean) |
웹 브릿지에서는 QR 보기 팝업의 ui.qrcodePopupOpen입니다.