public static class DownloadManager.Request extends Object
| Modifier and Type | Field and Description |
|---|---|
static int |
NETWORK_MOBILE |
static int |
NETWORK_WIFI |
static int |
VISIBILITY_HIDDEN |
static int |
VISIBILITY_VISIBLE |
static int |
VISIBILITY_VISIBLE_NOTIFY_COMPLETED |
static int |
VISIBILITY_VISIBLE_NOTIFY_ONLY_COMPLETION |
| Constructor and Description |
|---|
DownloadManager.Request(Uri uri) |
| Modifier and Type | Method and Description |
|---|---|
DownloadManager.Request |
addRequestHeader(String header,
String value) |
void |
allowScanningByMediaScanner() |
DownloadManager.Request |
setAllowedNetworkTypes(int flags) |
DownloadManager.Request |
setAllowedOverMetered(boolean allow) |
DownloadManager.Request |
setAllowedOverRoaming(boolean allowed) |
DownloadManager.Request |
setDescription(CharSequence description) |
DownloadManager.Request |
setDestinationInExternalFilesDir(Context context,
String dirType,
String subPath) |
DownloadManager.Request |
setDestinationInExternalPublicDir(String dirType,
String subPath) |
DownloadManager.Request |
setDestinationUri(Uri uri) |
DownloadManager.Request |
setMimeType(String mimeType) |
DownloadManager.Request |
setNotificationVisibility(int visibility) |
DownloadManager.Request |
setShowRunningNotification(boolean show)
Deprecated.
|
DownloadManager.Request |
setTitle(CharSequence title) |
DownloadManager.Request |
setVisibleInDownloadsUi(boolean isVisible) |
public static final int NETWORK_MOBILE
public static final int NETWORK_WIFI
public static final int VISIBILITY_VISIBLE
public static final int VISIBILITY_VISIBLE_NOTIFY_COMPLETED
public static final int VISIBILITY_HIDDEN
public static final int VISIBILITY_VISIBLE_NOTIFY_ONLY_COMPLETION
public DownloadManager.Request(Uri uri)
public DownloadManager.Request setDestinationUri(Uri uri)
public DownloadManager.Request setDestinationInExternalFilesDir(Context context, String dirType, String subPath)
public DownloadManager.Request setDestinationInExternalPublicDir(String dirType, String subPath)
public void allowScanningByMediaScanner()
public DownloadManager.Request addRequestHeader(String header, String value)
public DownloadManager.Request setTitle(CharSequence title)
public DownloadManager.Request setDescription(CharSequence description)
public DownloadManager.Request setMimeType(String mimeType)
@Deprecated public DownloadManager.Request setShowRunningNotification(boolean show)
public DownloadManager.Request setNotificationVisibility(int visibility)
public DownloadManager.Request setAllowedNetworkTypes(int flags)
public DownloadManager.Request setAllowedOverRoaming(boolean allowed)
public DownloadManager.Request setAllowedOverMetered(boolean allow)
public DownloadManager.Request setVisibleInDownloadsUi(boolean isVisible)
Copyright © 2008-2013. All Rights Reserved.