앱 실행 세션 최초 여부 | 앱 기본 정보 및 환경체크 | Appbox Android SDK 가이드
앱 실행 세션 최초 여부
isFirstSessionLaunch(callback)
호출 형태: 패턴 A(인자 없는 값 조회).
앱 실행 세션 최초 여부를 체크
AppBox.isFirstSessionLaunch(callback)
Kotlin
1
AppBox.isFirstSessionLaunch { first, error ->
2
if (error != null) return@isFirstSessionLaunch
3
if (first == true) resetSessionState()
4
}
1
AppBox.isFirstSessionLaunch((first, error) -> {
2
if (error != null) return;
3
if (Boolean.TRUE.equals(first)) resetSessionState();
4
});
Request 항목 정의
| Request 항목 | 필수여부 | 설명 | 기본값 |
|---|---|---|---|
| - | - | 별도 요청 항목 없음 | - |
Response 항목 정의
| Response 결과값 | |
|---|---|
| 값 | 세션 첫 실행 여부 (Boolean) |
1회성입니다. 읽는 즉시 값이 소비되어 다음 호출부터 false가 됩니다. 여러 곳에서 호출하지 말고 한 번 읽어 앱이 보관하세요.
웹 브릿지에서는 앱 실행 세션 최초 여부의 application.isFirstSessionLaunch입니다.