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