public class ChatRegister extends Object
Modifier and Type | Method and Description |
---|---|
void |
logIn(String jid,
String apiToken,
String userName)
This method login in chat platform.
|
void |
logIn(String jid,
String apiToken,
String userName,
GenericCallback callback)
This method login in chat platform.
|
void |
onReceiveSmS(com.pushtech.sdk.Sms sms) |
void |
registerWithSecretCode(String secretCode,
GenericCallback callback)
This method registers in the chat with the secret code.
|
void |
sendCodeRegistration(String phone,
String userName,
Country country,
GenericCallback callback)
This method uses to send code registration for validate user.
|
void |
setAutomaticUserValidationCallback(AutomaticUserValidationCallback automaticUserValidationCallback)
This method uses to notify when the sdk validate user automatically.
|
public void setAutomaticUserValidationCallback(AutomaticUserValidationCallback automaticUserValidationCallback)
automaticUserValidationCallback
- listener for notify automatically user validation.public void sendCodeRegistration(String phone, String userName, Country country, GenericCallback callback)
phone
- a valid phone numberuserName
- profile userNamecountry
- sim countrycallback
- public void registerWithSecretCode(String secretCode, GenericCallback callback)
secretCode
- a secret code received by sms.callback
- public void logIn(String jid, String apiToken, String userName, GenericCallback callback)
jid
- current user's jid.apiToken
- current user's chat token.userName
- current user's nick.callback
- public void logIn(String jid, String apiToken, String userName)
jid
- current user's jid.apiToken
- current user's chat token.userName
- current user's nick.public void onReceiveSmS(com.pushtech.sdk.Sms sms)