public abstract class PhoneLoginTracker extends Tracker
Tracker.stopTracking()
method should be called in the onDestroy() method of the receiving
Activity or Fragment.Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ACTION_PHONE_LOGIN_STATE_CHANGED |
EXTRA_LOGIN_ERROR, EXTRA_LOGIN_MODEL, EXTRA_LOGIN_STATUS
Constructor and Description |
---|
PhoneLoginTracker() |
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
getActionStateChanged() |
java.lang.String |
getCode()
Returns the code that is stored on this tracker.
|
protected abstract void |
onAccountVerified(PhoneLoginModel loginModel)
This method will be called when the account has been verified as part of seamless login
|
protected abstract void |
onCancel(PhoneLoginModel loginModel)
The method that will be called when the login was canceled
|
protected abstract void |
onError(AccountKitException exception)
The method that will be called when the login has an error
|
protected void |
onReceive(android.content.Intent intent)
Called when the broadcast is received.
|
protected abstract void |
onStarted(PhoneLoginModel loginModel)
The method that will be called when the login has started.
|
protected abstract void |
onSuccess(PhoneLoginModel loginModel)
The method that will be called when the login has completed
|
void |
setCode(java.lang.String code)
Stores a code on this tracker.
|
isLocal, isPaused, isTracking, pauseTracking, startTracking, stopTracking
public static final java.lang.String ACTION_PHONE_LOGIN_STATE_CHANGED
public java.lang.String getCode()
public void setCode(java.lang.String code)
code
- the confirmation codeprotected abstract void onStarted(PhoneLoginModel loginModel)
loginModel
- the current login modelprotected abstract void onAccountVerified(PhoneLoginModel loginModel)
loginModel
- the current login modelprotected abstract void onSuccess(PhoneLoginModel loginModel)
loginModel
- the current login modelprotected abstract void onError(AccountKitException exception)
exception
- the exceptionprotected abstract void onCancel(PhoneLoginModel loginModel)
loginModel
- the login that was canceledprotected java.lang.String getActionStateChanged()
getActionStateChanged
in class Tracker