object KakaoSdk
Kakao SDK 사용에 필요한 설정을 담고 있는 클래스. 이 클래스에서 제공하는 init 함수를 사용해 SDK를 사용하기 전에 반드시 초기화 필요.
class MyApplication : Application {
fun onCreate() {
KakaoSdk.init(this, "${NATIVE_APP_KEY}")
}
}
Type |
enum class Type |
appKey |
val appKey: String |
applicationContextInfo |
lateinit var applicationContextInfo: ApplicationContextInfo |
approvalType |
lateinit var approvalType: ApprovalType |
hosts |
lateinit var hosts: ServerHosts |
kaHeader |
val kaHeader: String |
keyHash |
val keyHash: String |
loggingEnabled |
var loggingEnabled: Boolean |
redirectUri |
val redirectUri: String |
type |
lateinit var type: Type |
init |
Kakao SDK 초기화. Application.onCreate 내에서 호출 권장. fun init(context: Context, appKey: String, customScheme: String? = null, loggingEnabled: Boolean? = null, hosts: ServerHosts? = null, approvalType: ApprovalType? = null): Unit fun init(context: Context, appKey: String, customScheme: String, loggingEnabled: Boolean, hosts: ServerHosts, approvalType: ApprovalType, type: Type): Unit |