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
ConstructorDescriptionThemeImportTask
(Context context, int themeAction, ThemeListener.Import.File<T> themeListener) Constructor to initialize an object of this class. -
Method Summary
Modifier and TypeMethodDescriptionprotected String
doInBackground
(Void params) int
Get the theme action used by this task.Get the listener to receive the theme events.protected void
onPostExecute
(DynamicResult<String> result) protected void
Methods inherited from class com.pranavpandey.android.dynamic.util.concurrent.task.ContextTask
getContext
Methods inherited from class com.pranavpandey.android.dynamic.util.concurrent.DynamicTask
cancel, execute, execute, executeOnExecutor, executeOnExecutor, finish, get, get, getBooleanResult, getHandler, getStatus, isCancelled, publishProgress, run
Methods inherited from class com.pranavpandey.android.dynamic.util.concurrent.DynamicRunnable
onCancelled, onCancelled, onProgressUpdate
-
Constructor Details
-
Method Details
-
onPreExecute
protected void onPreExecute()- Overrides:
onPreExecute
in classDynamicRunnable<Void,
Void, String>
-
doInBackground
- Specified by:
doInBackground
in 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.
-