...
코드 블럭 | ||
---|---|---|
| ||
import com.kakaogame.KGTKakaoTalk; // Display the KakaoTalk game message reception setting view KGTKakaoTalk.showSetting(activity, result -> { if (result.isSuccess()) { // Successfully set KakaoTalk game message reception boolean allowMessage = result.getContent(); // Whether message reception is allowed } else if (result.getCode() == KGTResult.KGTResultCode.NOT_KAKAOTALK_USER) { // The logged-in user is not a KakaoTalk user. This occurs if the account is only registered with KakaoStory and not with KakaoTalk. } else { // Failed to set KakaoTalk game message reception } }); |
Retrieve KakaoTalk Profile
...
발췌문 삽입 | ||||||||
---|---|---|---|---|---|---|---|---|
|
코드 블럭 | ||
---|---|---|
| ||
import com.kakaogame.KGTKakaoTalk; import com.kakaogame.KGTKakaoTalkProfile; // Retrieve KakaoTalk profile KGTKakaoTalk.talkProfile(result -> { if (result.isSuccess()) { // Successfully retrieved KakaoTalk profile talkProfile = result.getContent(); // The KakaoTalk profile information of the logged-in user } else if (result.getCode() == KGTResult.KGTResultCode.NOT_KAKAOTALK_USER) { // The logged-in user is not a KakaoTalk user. This occurs if the account is only registered with KakaoStory and not with KakaoTalk. } else { // Failed to retrieve KakaoTalk profile } }); |
...
Retrieve KakaoTalk Game Friend List
발췌문 삽입 | ||||||||
---|---|---|---|---|---|---|---|---|
|
...