Class ThemeImportTask<T>
java.lang.Object
com.pranavpandey.android.dynamic.util.concurrent.DynamicRunnable<T,P,R>
com.pranavpandey.android.dynamic.util.concurrent.DynamicTask<T,P,R>
com.pranavpandey.android.dynamic.util.concurrent.task.ContextTask<Void,Void,String>
com.pranavpandey.android.dynamic.support.theme.task.ThemeImportTask<T>
- Type Parameters:
T- The type of the dynamic app theme.
- All Implemented Interfaces:
Runnable
A
DynamicTask to perform the theme import operations.-
Constructor Summary
ConstructorsConstructorDescriptionThemeImportTask(Context context, int themeAction, ThemeListener.Import.File<T> themeListener) Constructor to initialize an object of this class. -
Method Summary
Modifier and TypeMethodDescriptionprotected StringdoInBackground(Void params) intGet the theme action used by this task.Get the listener to receive the theme events.protected voidonPostExecute(DynamicResult<String> result) protected voidMethods inherited from class com.pranavpandey.android.dynamic.util.concurrent.task.ContextTask
getContextMethods inherited from class com.pranavpandey.android.dynamic.util.concurrent.DynamicTask
cancel, execute, execute, executeOnExecutor, executeOnExecutor, finish, get, get, getBooleanResult, getHandler, getStatus, isCancelled, publishProgress, runMethods inherited from class com.pranavpandey.android.dynamic.util.concurrent.DynamicRunnable
onCancelled, onCancelled, onProgressUpdate
-
Constructor Details
-
Method Details
-
onPreExecute
protected void onPreExecute()- Overrides:
onPreExecutein classDynamicRunnable<Void,Void, String>
-
doInBackground
- Specified by:
doInBackgroundin classDynamicRunnable<Void,Void, String>
-
getThemeAction
public int getThemeAction()Get the theme action used by this task.- Returns:
- The theme action used by this task.
-
getThemeListener
Get the listener to receive the theme events.- Returns:
- The listener to receive the theme events.
-