setup

fun setup(listener: AuthV4.AuthV4SetupListener?)

AuthV4 초기화를 수행한다.
AuthV4 Perform initialization.


korean

Configuration 영역을 제외한 모든 API 중 가장 먼저 호출되어야 하며
선 호출이 되지 않을시 일부 API 에서는 NEED_INITIALIZE 에러가 발생할 수 있다.
Android 의 경우 초기 퍼미션 요청 UI 동작이 추가되며
이후 약관 동의, 다운로드 체크, DID 설정, config.xml 설정, ProviderList 설정 등이 진행 된다.
최초 실행 시 DID 를 받아오지 못하거나, Provider List 를 받아오지 못하면 listener 결과로 실패가 내려간다.
listener 에 포함된 providerTypeList 를 통해 signIn 에 필요한 UI 를 구성해야 한다.
직접 UI 를 구현하지 않을 시 showSignIn() 을 이용한다.

AuthV4 의 setup 이 되면 기존의 Auth 와 Social 영역의 기능은 사용할 수 없게된다.
반대의 경우에도 Auth 로 initialize 가 되면 AuthV4 와 Provider 영역은 사용할 수 없게 된다.
다른 기능 단위에서 (Push, Pomotion, IAP 등) 필요한 vid 는 AuthV4 로 setup 한 경우 playerId 를 String 으로 넣어주면 된다.


english

It should be called first among all the APIs except for the configuration area,
and if this is not called first, some API may cause a NEED_INITIALIZE error.
On Android, the permission request UI is exposed
Afterwards, consent to the Terms, download check, DID setting, config.xml setting, ProviderList setting and etc. are performed.
If the DID is not received on the first execution, or the provider list is not received, the result is sent to the listener as failure.
You need to configure the UI for signIn using the providerTypeList contained in listener.
If you do not implement the UI directly, use showSignIn().

When the setup of AuthV4 is called, the functions of the existing Auth and Social areas are disabled.
In the opposite case, when Auth is initialized, AuthV4 and Provider areas are disabled.
Required VID for other functional units (Push, Pomotion, IAP, etc.), you need to insert the playerId instead,if you set up with AuthV4.

Parameters

listener

onAuthV4Setup AuthV4 Setup request result callback
result : If the DID is not received or the provider list is not received, it fails. Otherwise, success.
isAutoSignIn : Whether an old session remains local storage. If true, call SignIn (ProviderType.AUTO).
Otherwise, you can request SignIn as one of providerTypeList.
providerTypeList : A provider list that can be signed in at the current device.
And may be different depending on the current area (IP) of the device.
GUEST is included, and in some areas or environments GUEST may not be possible.