kakao-partner-android-sdk-rx / com.kakao.sdk.partner.model / withPhase

withPhase

fun ServerHosts.Companion.withPhase(phase: KakaoPhase): ServerHosts

KakaoPhase 를 기반으로 원하는 Phase의 서버 호스트 정보를 생성. KakaoSdk.init 파라미터로 사용.

// Sandbox 설정 예제
KakaoSdk.init(
  context,
  appKey,
  ServerHosts.withPhase(KakaoPhase.SANDBOX)
)