여러분의 게임이 성인 인증이 필요한 게임이라면 HIVE의 성인 인증 기능을 사용하세요. 성인 인증을 하기 위해서는 유저 정보가 필요하므로, 유저를 로그인 시킨 직후 성인 인증을 수행해 주세요.
유저에 대한 성인 인증을 수행하려면 Auth 클래스의 showAdultConfirm()
메서드를 호출하세요.
다음은 유저에게 성인 인증을 요청하는 예제 코드입니다.
Unity®
API Reference: hive.Auth.showAdultConfirm
1 2 3 4 5 6 7 8 9 |
// 성인 인증 결과 콜백 핸들러 public void onAuthAdultConfirmCB(ResultAPI result) { if(result.isSuccess()){ // API 호출 성공 } } // 성인 인증 요청하기 hive.Auth.showAdultConfirm(onAuthAdultConfirmCB); |
C++
API Reference: Auth::showAdultConfirm
1 2 3 4 5 6 7 8 |
// 성인 인증 요청하기 Auth::showAdultConfirm([=](ResultAPI result){ // 성인 인증 요청 결과 콜백 함수 if(result.isSuccess()){ // API 호출 성공 } } ); |
Android
API Reference: com.hive.Auth.showAdultConfirm
1 2 3 4 5 6 7 8 9 10 |
// 성인 인증 요청하기 Auth.showAdultConfirm(new Auth.AuthAdultConfirmListener() { // 성인 인증 요청 결과 콜백 리스너 @Override public void onAuthAdultConfirm(ResultAPI result) { if(result.isSuccess()){ // API 호출 성공 } } }); |
iOS
API Reference: HIVEAuth:showAdultConfirm
1 2 3 4 5 6 7 |
// 성인 인증 요청하기 [HIVEAuth showAdultConfirm:^(HIVEResultAPI *result) { // 성인 인증 요청 결과 콜백 핸들러 if(result.isSuccess){ // API 호출 성공 } }]; |