버전 비교

  • 이 줄이 추가되었습니다.
  • 이 줄이 삭제되었습니다.
  • 서식이 변경되었습니다.

71.1. Reach Kakao SDK Example

...

코드 블럭
// Request authentication
KGKakaoProfile.requestAgeVerification(activity, new KGResultCallback<Void>() {
    @Override
    public void onResult(KGResult<Void> result) {
        if (result.isSuccess()) {
            KGLocalPlayer localPlayer = KGLocalPlayer.getCurrentPlayer();
            String ci = ((KGKakaoProfile)localPlayer.getIdpProfile()).getCI();
  
            // Save the CI value on your game server. It is used to identify the user as one person.
        } else {
            // Fail
            if (result.getCode() == KGResult.KGResultCode.UDER_AGE_PLAYER) {
                // The user is underage. Show the message, call logout API and quit your game.
            } else {
                // If personal authentication is mandatory, call this API again.
            }
        }
    }
});

 

71.1.2. Request  Request In-Game Service Status

This API is Deprecated.

This is an example of requesting an in-game service status.

...

코드 블럭
// Request In-Game Service Status
KGKakaoInReachGameService.requestIngameStatus(new KGResultCallback<KGIngameStatus>() {
    @Override
    public void onResult(KGResult<KGIngameStatus> result) {
        if (result.isSuccess()) {
            KGIngameStatus status = result.getContent();
 
            // Before you launch In-game Webview, check whether you want to expose the new badge.
            boolean showNewBadge = status.getWithGame().getShowNewBadge();
            // This is the time when the new badge is activated. You can decide whether to be exposed according to your plan.
            long lastModifiedAt = status.getWithGame().getLastModifiedAt();
            // The URL of the Webview.
            string homeUrl = status.getWithGame().getHomeUrl();
        } else {
            // Fail...
        }
    }
});

 

 

71.1.3. Exposure  Exposure In-Game WebView

This API is Deprecated.

This is an example of exposing an in-game webview that exposes recommanded board games.

...

71.1.3.1. Ingame Webview Button Design Guide

  1. Ingame Webview Button

  2. Image Modified

    New Badge

  3. Image Modified

    Ex)

    Image Modified