public class Utils
extends java.lang.Object
Constructor and Description |
---|
Utils() |
Modifier and Type | Method and Description |
---|---|
static Downloader |
createDefaultDownloader(Context context)
Creates a Downloader object depending on the dependencies present.
|
static boolean |
deleteDir(java.io.File dir)
Deletes the specified directory.
|
public static boolean deleteDir(java.io.File dir)
dir
- Directory to delete.true
if successful, false
if otherwise.public static Downloader createDefaultDownloader(Context context)
context
- Application context.OkHttpDownloader
if the OkHttp library is present, DefaultDownloader
if not.