Class FileDeleteTask
java.lang.Object
com.pranavpandey.android.dynamic.util.concurrent.DynamicRunnable<T,P,R>
com.pranavpandey.android.dynamic.util.concurrent.DynamicTask<Void,Void,Boolean>
com.pranavpandey.android.dynamic.util.concurrent.task.FileDeleteTask
- All Implemented Interfaces:
Runnable
A
DynamicTask to delete a file.-
Constructor Summary
ConstructorsConstructorDescriptionFileDeleteTask(File file) Constructor to initialize an object of this class. -
Method Summary
Modifier and TypeMethodDescriptionprotected BooleandoInBackground(Void params) This method will be called for doing the background work.getFile()Get the file used by this task.Methods 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, onPostExecute, onPreExecute, onProgressUpdate
-
Constructor Details
-
FileDeleteTask
Constructor to initialize an object of this class.- Parameters:
file- The file to be deleted.
-
-
Method Details
-
doInBackground
Description copied from class:DynamicRunnableThis method will be called for doing the background work.- Specified by:
doInBackgroundin classDynamicRunnable<Void,Void, Boolean> - Parameters:
params- The optional parameters required for the work.- Returns:
- The optional result object.
-
getFile
Get the file used by this task.- Returns:
- The file used by this task.
-