kakao-android-sdk-rx / com.kakao.sdk.auth / LoginClient

LoginClient

class LoginClient

카카오 로그인을 실행하기 위한 클라이언트. 카카오톡 또는 시스템 브라우저를 이용해 카카오계정 정보를 획득하고 API 요청에 필요한 사용자 토큰을 발급 받습니다.

Constructors

<init>

카카오 로그인을 실행하기 위한 클라이언트. 카카오톡 또는 시스템 브라우저를 이용해 카카오계정 정보를 획득하고 API 요청에 필요한 사용자 토큰을 발급 받습니다.

LoginClient(authApiClient: AuthApiClient = AuthApiClient.instance, authCodeClient: AuthCodeClient = AuthCodeClient.instance)

Functions

isKakaoTalkLoginAvailable

카카오톡 간편로그인 가능 여부(설치 여부)를 검사합니다.

fun isKakaoTalkLoginAvailable(context: Context): Boolean

loginWithKakaoAccount

웹 브라우저(CustomTabs)에 있는 카카오계정 cookie 로 인증하여 새로운 OAuthToken 을 발급 받습니다.

fun loginWithKakaoAccount(context: Context, channelPublicIds: List<String>? = null, serviceTerms: List<String>? = null, autoLogin: Boolean? = null, callback: (token: OAuthToken?, error: Throwable?) -> Unit): Unit

loginWithKakaoTalk

카카오톡 간편로그인으로 사용자를 인증하고 OAuthToken 을 발급 받습니다.

fun loginWithKakaoTalk(context: Context, requestCode: Int = AuthCodeClient.DEFAULT_REQUEST_CODE, channelPublicIds: List<String>? = null, serviceTerms: List<String>? = null, autoLogin: Boolean? = null, callback: (token: OAuthToken?, error: Throwable?) -> Unit): Unit

loginWithNewScopes

현재 로그인된 사용자에게 아직 동의받지 못한 개인정보,접근권한 동의항목에 대하여 동의를 요청하고 동의항목이 업데이트 된 OAuthToken 을 발급 받습니다.

fun loginWithNewScopes(context: Context, scopes: List<String>, callback: (token: OAuthToken?, error: Throwable?) -> Unit): Unit

Companion Object Properties

instance

간편한 API 호출을 위해 기본 제공되는 singleton 객체

val instance: LoginClient