public class OfflineViewRemainingTimeAsync
extends android.os.AsyncTask<java.lang.String,java.lang.String,java.lang.String>
Modifier and Type | Class and Description |
---|---|
static interface |
OfflineViewRemainingTimeAsync.offlineViewRemainingTimeInputListener
Interface used to allow the caller of a OfflineViewRemainingTimeAsync to run some code when get
responses.
|
Constructor and Description |
---|
OfflineViewRemainingTimeAsync(OfflineViewRemainingTimeInput offlineViewRemainingTimeInput,
OfflineViewRemainingTimeAsync.offlineViewRemainingTimeInputListener listener,
android.content.Context context)
Constructor to initialise the private data members.
|
Modifier and Type | Method and Description |
---|---|
protected java.lang.String |
doInBackground(java.lang.String... f_url) |
protected void |
onPostExecute(java.lang.String file_url) |
protected void |
onPreExecute() |
public OfflineViewRemainingTimeAsync(OfflineViewRemainingTimeInput offlineViewRemainingTimeInput, OfflineViewRemainingTimeAsync.offlineViewRemainingTimeInputListener listener, android.content.Context context)
offlineViewRemainingTimeInput
- A Model Class which is use for background task, we need to set all the attributes through setter methods of input model class,
For Example: to use this API we have to set following attributes:
setAuthToken() ,setPermalink() etc.listener
- offlineViewRemainingTimeInput Listenercontext
- android.content.Contextprotected java.lang.String doInBackground(java.lang.String... f_url)
doInBackground
in class android.os.AsyncTask<java.lang.String,java.lang.String,java.lang.String>
protected void onPreExecute()
onPreExecute
in class android.os.AsyncTask<java.lang.String,java.lang.String,java.lang.String>
protected void onPostExecute(java.lang.String file_url)
onPostExecute
in class android.os.AsyncTask<java.lang.String,java.lang.String,java.lang.String>