init static method
void
init({})
Implementation
static void init({
String? nativeAppKey,
String? javaScriptAppKey,
ServerHosts? serviceHosts,
bool? loggingEnabled,
}) {
if (nativeAppKey == null) {
throw KakaoClientException("Native App Key is required");
}
nativeKey = nativeAppKey;
jsKey = javaScriptAppKey ?? "";
hosts = serviceHosts ?? ServerHosts();
logging = loggingEnabled ?? false;
}