-
public class ZeroTalk
-
-
Field Summary
Fields Modifier and Type Field Description private final IntegerFILE_PICK_REQUEST_CODEpublic final static ZeroTalkINSTANCE
-
Method Summary
Modifier and Type Method Description final static Unitboot(Context context, ZeroTalkConfig config, Function1<BootStatus, Unit> callback)final static UnitshowMessenger(Context context)final static UnithideMessenger()final static Unitshutdown()final static UnitsetListener(ZeroTalkListener listener)final static UnitsetLanguage(ZeroTalkLanguage language)final static Unitidentify(String memberId, String hash, Map<String, Object> profile, Map<String, Object> customFields)사용자 로그인 후 identified contact으로 전환. final static Unitidentify(String memberId, String hash, Map<String, Object> profile)사용자 로그인 후 identified contact으로 전환. final static Unitidentify(String memberId, String hash)사용자 로그인 후 identified contact으로 전환. final static Unitlogout()사용자 로그아웃. final static UnitonConfigurationChanged(Configuration newConfig)호스트 Activity.onConfigurationChanged에서 호출 필요. final static UnitinitPushToken(String token)final static BooleanonActivityResult(Integer requestCode, Integer resultCode, Intent data)host Activity.onActivityResult에서 반드시 호출해야 함. final static UnitnotifyPermission(String type, Boolean granted)final static UnitsetTheme(Map<String, String> tokens)final static Unittoggle(Context context)final static UnitdebugSimulateBridgeMessage(String raw)final IntegergetFILE_PICK_REQUEST_CODE()-
-
Method Detail
-
boot
final static Unit boot(Context context, ZeroTalkConfig config, Function1<BootStatus, Unit> callback)
-
showMessenger
final static Unit showMessenger(Context context)
-
hideMessenger
final static Unit hideMessenger()
-
setListener
final static Unit setListener(ZeroTalkListener listener)
-
setLanguage
final static Unit setLanguage(ZeroTalkLanguage language)
-
identify
@JvmOverloads() final static Unit identify(String memberId, String hash, Map<String, Object> profile, Map<String, Object> customFields)
사용자 로그인 후 identified contact으로 전환. 재부팅 불필요. window.ZeroTalkBridge.identify() bridge를 통해 web SDK의 POST /sdk/identify 호출.
-
identify
@JvmOverloads() final static Unit identify(String memberId, String hash, Map<String, Object> profile)
사용자 로그인 후 identified contact으로 전환. 재부팅 불필요. window.ZeroTalkBridge.identify() bridge를 통해 web SDK의 POST /sdk/identify 호출.
-
identify
@JvmOverloads() final static Unit identify(String memberId, String hash)
사용자 로그인 후 identified contact으로 전환. 재부팅 불필요. window.ZeroTalkBridge.identify() bridge를 통해 web SDK의 POST /sdk/identify 호출.
-
onConfigurationChanged
final static Unit onConfigurationChanged(Configuration newConfig)
호스트 Activity.onConfigurationChanged에서 호출 필요. appearance=SYSTEM일 때 다크/라이트 전환을 WebView에 반영.
-
initPushToken
final static Unit initPushToken(String token)
-
onActivityResult
final static Boolean onActivityResult(Integer requestCode, Integer resultCode, Intent data)
host Activity.onActivityResult에서 반드시 호출해야 함.
-
notifyPermission
final static Unit notifyPermission(String type, Boolean granted)
-
debugSimulateBridgeMessage
final static Unit debugSimulateBridgeMessage(String raw)
-
getFILE_PICK_REQUEST_CODE
final Integer getFILE_PICK_REQUEST_CODE()
-
-
-
-