com.ardic.android.managers.download.IDownloadManager |
Class Overview
Provides set of API for download utils.
Summary
Public Methods |
abstract
boolean
|
cancelDownload(long id)
|
abstract
String
|
getDownloadFilename(long downloadId)
|
abstract
long
|
getDownloadIdByTitle(String title)
|
abstract
long
|
getDownloadIdByTitleAndDestination(String title, int destination)
|
abstract
int
|
getDownloadState(long downloadId)
|
abstract
Uri
|
getUriForDownloadedFile(long id)
|
abstract
void
|
removeDownloadsByTitle(String title)
|
abstract
void
|
removeDownloadsByTitleAndDestination(String title, int destination)
|
abstract
void
|
removeFile(String path)
|
abstract
void
|
setDownloadStateObserver(long downloadId)
|
abstract
int
|
setTitle(long downloadId, String title)
|
abstract
void
|
showProgressOnConsole(long downloadId)
|
abstract
long
|
silentFileDownload(String url, String destinationPath, String mimeType)
|
abstract
long
|
startDownload(String url, String destinationType, String dirType, String subPath, boolean visibilityUI, int visibilityNotify, Map requestHeaders, boolean mobileNetworkAllowed, String description, String title, String mimeType)
|
Constants
public
static
final
String
ACTION_AFEX_DOWNLOAD_STATE
Constant Value:
"com.ardic.android.intent.action.AFEX_DOWNLOAD_STATE"
public
static
final
int
DESTINATION_EXTERNAL
Constant Value:
0
(0x00000000)
public
static
final
int
DESTINATION_FILE_URI
Constant Value:
4
(0x00000004)
public
static
final
int
DESTINATION_SYSTEMCACHE_PARTITION
Constant Value:
5
(0x00000005)
public
static
final
int
NOTIFY_HIDDEN
Constant Value:
2
(0x00000002)
public
static
final
int
NOTIFY_VISIBLE
Constant Value:
0
(0x00000000)
public
static
final
int
NOTIFY_VISIBLE_COMPLETED
Constant Value:
1
(0x00000001)
public
static
final
int
NOTIFY_VISIBLE_ONLY_COMPLETION
Constant Value:
3
(0x00000003)
public
static
final
int
STATUS_FAILED
Constant Value:
16
(0x00000010)
public
static
final
int
STATUS_PAUSED
Constant Value:
4
(0x00000004)
public
static
final
int
STATUS_PENDING
Constant Value:
1
(0x00000001)
public
static
final
int
STATUS_RUNNING
Constant Value:
2
(0x00000002)
public
static
final
int
STATUS_SUCCESSFUL
Constant Value:
8
(0x00000008)
Public Methods
public
abstract
boolean
cancelDownload
(long id)
public
abstract
String
getDownloadFilename
(long downloadId)
Parameters |
downloadId |
long
|
public
abstract
long
getDownloadIdByTitle
(String title)
public
abstract
long
getDownloadIdByTitleAndDestination
(String title, int destination)
Parameters |
title |
String
|
destination |
int
|
public
abstract
int
getDownloadState
(long downloadId)
Parameters |
downloadId |
long
|
public
abstract
Uri
getUriForDownloadedFile
(long id)
public
abstract
void
removeDownloadsByTitle
(String title)
public
abstract
void
removeDownloadsByTitleAndDestination
(String title, int destination)
Parameters |
title |
String
|
destination |
int
|
public
abstract
void
removeFile
(String path)
public
abstract
void
setDownloadStateObserver
(long downloadId)
Parameters |
downloadId |
long
|
public
abstract
int
setTitle
(long downloadId, String title)
Parameters |
downloadId |
long
|
title |
String
|
public
abstract
void
showProgressOnConsole
(long downloadId)
Parameters |
downloadId |
long
|
public
abstract
long
silentFileDownload
(String url, String destinationPath, String mimeType)
Parameters |
url |
String
|
destinationPath |
String
|
mimeType |
String
|
public
abstract
long
startDownload
(String url, String destinationType, String dirType, String subPath, boolean visibilityUI, int visibilityNotify, Map requestHeaders, boolean mobileNetworkAllowed, String description, String title, String mimeType)
Parameters |
url |
String
|
destinationType |
String
|
dirType |
String
|
subPath |
String
|
visibilityUI |
boolean
|
visibilityNotify |
int
|
requestHeaders |
Map
|
mobileNetworkAllowed |
boolean
|
description |
String
|
title |
String
|
mimeType |
String
|