public class SocialLoginTask
extends android.os.AsyncTask<java.lang.Void,java.lang.Void,com.coffeebeantech.socialidsdk.sociallogin.SocialLoginTaskResult>
Constructor and Description |
---|
SocialLoginTask(LoginEventListener listener,
Provider provider,
com.coffeebeantech.socialidapi.models.marketing.oauth.UserAccessTokenAttributes userAccessTokenAttributes,
java.util.List<java.lang.String> userFields) |
Modifier and Type | Method and Description |
---|---|
com.coffeebeantech.socialidsdk.sociallogin.SocialLoginTaskResult |
doInBackground(java.lang.Void... params)
Override this method to perform a computation on a background thread.
|
protected void |
onPostExecute(com.coffeebeantech.socialidsdk.sociallogin.SocialLoginTaskResult result)
Runs on the UI thread after
AsyncTask.doInBackground(Params...) . |
protected void |
onPreExecute()
Runs on the UI thread before
AsyncTask.doInBackground(Params...) . |
public SocialLoginTask(LoginEventListener listener, Provider provider, com.coffeebeantech.socialidapi.models.marketing.oauth.UserAccessTokenAttributes userAccessTokenAttributes, java.util.List<java.lang.String> userFields)
protected void onPreExecute()
android.os.AsyncTask
AsyncTask.doInBackground(Params...)
.onPreExecute
in class android.os.AsyncTask<java.lang.Void,java.lang.Void,com.coffeebeantech.socialidsdk.sociallogin.SocialLoginTaskResult>
AsyncTask.onPostExecute(Result)
,
AsyncTask.doInBackground(Params...)
public com.coffeebeantech.socialidsdk.sociallogin.SocialLoginTaskResult doInBackground(java.lang.Void... params)
android.os.AsyncTask
AsyncTask.execute(Params...)
by the caller of this task.
This method can call AsyncTask.publishProgress(Progress...)
to publish updates
on the UI thread.doInBackground
in class android.os.AsyncTask<java.lang.Void,java.lang.Void,com.coffeebeantech.socialidsdk.sociallogin.SocialLoginTaskResult>
params
- The parameters of the task.AsyncTask.onPreExecute()
,
AsyncTask.onPostExecute(Result)
,
AsyncTask.publishProgress(Progress...)
protected void onPostExecute(com.coffeebeantech.socialidsdk.sociallogin.SocialLoginTaskResult result)
android.os.AsyncTask
Runs on the UI thread after AsyncTask.doInBackground(Params...)
. The
specified result is the value returned by AsyncTask.doInBackground(Params...)
.
This method won't be invoked if the task was cancelled.
onPostExecute
in class android.os.AsyncTask<java.lang.Void,java.lang.Void,com.coffeebeantech.socialidsdk.sociallogin.SocialLoginTaskResult>
result
- The result of the operation computed by AsyncTask.doInBackground(Params...)
.AsyncTask.onPreExecute()
,
AsyncTask.doInBackground(Params...)
,
AsyncTask.onCancelled(Object)