All Downloads are FREE. Search and download functionalities are using the official Maven repository.

android.app.DownloadManager Maven / Gradle / Ivy

Go to download

provide android hidden api definition ,helper for android super framework development

There is a newer version: 1.11
Show newest version
package android.app;
public class DownloadManager
{
public static class Request
{
public  Request(android.net.Uri uri) { throw new RuntimeException("Stub!"); }
public  android.app.DownloadManager.Request setDestinationUri(android.net.Uri uri) { throw new RuntimeException("Stub!"); }
public  android.app.DownloadManager.Request setDestinationInExternalFilesDir(android.content.Context context, java.lang.String dirType, java.lang.String subPath) { throw new RuntimeException("Stub!"); }
public  android.app.DownloadManager.Request setDestinationInExternalPublicDir(java.lang.String dirType, java.lang.String subPath) { throw new RuntimeException("Stub!"); }
public  void allowScanningByMediaScanner() { throw new RuntimeException("Stub!"); }
public  android.app.DownloadManager.Request addRequestHeader(java.lang.String header, java.lang.String value) { throw new RuntimeException("Stub!"); }
public  android.app.DownloadManager.Request setTitle(java.lang.CharSequence title) { throw new RuntimeException("Stub!"); }
public  android.app.DownloadManager.Request setDescription(java.lang.CharSequence description) { throw new RuntimeException("Stub!"); }
public  android.app.DownloadManager.Request setMimeType(java.lang.String mimeType) { throw new RuntimeException("Stub!"); }
@java.lang.Deprecated()
public  android.app.DownloadManager.Request setShowRunningNotification(boolean show) { throw new RuntimeException("Stub!"); }
public  android.app.DownloadManager.Request setNotificationVisibility(int visibility) { throw new RuntimeException("Stub!"); }
public  android.app.DownloadManager.Request setAllowedNetworkTypes(int flags) { throw new RuntimeException("Stub!"); }
public  android.app.DownloadManager.Request setAllowedOverRoaming(boolean allowed) { throw new RuntimeException("Stub!"); }
public  android.app.DownloadManager.Request setAllowedOverMetered(boolean allow) { throw new RuntimeException("Stub!"); }
public  android.app.DownloadManager.Request setVisibleInDownloadsUi(boolean isVisible) { throw new RuntimeException("Stub!"); }
public static final int NETWORK_MOBILE = 1;
public static final int NETWORK_WIFI = 2;
public static final int VISIBILITY_VISIBLE = 0;
public static final int VISIBILITY_VISIBLE_NOTIFY_COMPLETED = 1;
public static final int VISIBILITY_HIDDEN = 2;
public static final int VISIBILITY_VISIBLE_NOTIFY_ONLY_COMPLETION = 3;
}
public static class Query
{
public  Query() { throw new RuntimeException("Stub!"); }
public  android.app.DownloadManager.Query setFilterById(long... ids) { throw new RuntimeException("Stub!"); }
public  android.app.DownloadManager.Query setFilterByStatus(int flags) { throw new RuntimeException("Stub!"); }
}
DownloadManager() { throw new RuntimeException("Stub!"); }
public  long enqueue(android.app.DownloadManager.Request request) { throw new RuntimeException("Stub!"); }
public  int remove(long... ids) { throw new RuntimeException("Stub!"); }
public  android.database.Cursor query(android.app.DownloadManager.Query query) { throw new RuntimeException("Stub!"); }
public  android.os.ParcelFileDescriptor openDownloadedFile(long id) throws java.io.FileNotFoundException { throw new RuntimeException("Stub!"); }
public  android.net.Uri getUriForDownloadedFile(long id) { throw new RuntimeException("Stub!"); }
public  java.lang.String getMimeTypeForDownloadedFile(long id) { throw new RuntimeException("Stub!"); }
public static  java.lang.Long getMaxBytesOverMobile(android.content.Context context) { throw new RuntimeException("Stub!"); }
public static  java.lang.Long getRecommendedMaxBytesOverMobile(android.content.Context context) { throw new RuntimeException("Stub!"); }
public  long addCompletedDownload(java.lang.String title, java.lang.String description, boolean isMediaScannerScannable, java.lang.String mimeType, java.lang.String path, long length, boolean showNotification) { throw new RuntimeException("Stub!"); }
public static final java.lang.String COLUMN_ID = "_id";
public static final java.lang.String COLUMN_TITLE = "title";
public static final java.lang.String COLUMN_DESCRIPTION = "description";
public static final java.lang.String COLUMN_URI = "uri";
public static final java.lang.String COLUMN_MEDIA_TYPE = "media_type";
public static final java.lang.String COLUMN_TOTAL_SIZE_BYTES = "total_size";
public static final java.lang.String COLUMN_LOCAL_URI = "local_uri";
public static final java.lang.String COLUMN_LOCAL_FILENAME = "local_filename";
public static final java.lang.String COLUMN_STATUS = "status";
public static final java.lang.String COLUMN_REASON = "reason";
public static final java.lang.String COLUMN_BYTES_DOWNLOADED_SO_FAR = "bytes_so_far";
public static final java.lang.String COLUMN_LAST_MODIFIED_TIMESTAMP = "last_modified_timestamp";
public static final java.lang.String COLUMN_MEDIAPROVIDER_URI = "mediaprovider_uri";
public static final int STATUS_PENDING = 1;
public static final int STATUS_RUNNING = 2;
public static final int STATUS_PAUSED = 4;
public static final int STATUS_SUCCESSFUL = 8;
public static final int STATUS_FAILED = 16;
public static final int ERROR_UNKNOWN = 1000;
public static final int ERROR_FILE_ERROR = 1001;
public static final int ERROR_UNHANDLED_HTTP_CODE = 1002;
public static final int ERROR_HTTP_DATA_ERROR = 1004;
public static final int ERROR_TOO_MANY_REDIRECTS = 1005;
public static final int ERROR_INSUFFICIENT_SPACE = 1006;
public static final int ERROR_DEVICE_NOT_FOUND = 1007;
public static final int ERROR_CANNOT_RESUME = 1008;
public static final int ERROR_FILE_ALREADY_EXISTS = 1009;
public static final int PAUSED_WAITING_TO_RETRY = 1;
public static final int PAUSED_WAITING_FOR_NETWORK = 2;
public static final int PAUSED_QUEUED_FOR_WIFI = 3;
public static final int PAUSED_UNKNOWN = 4;
public static final java.lang.String ACTION_DOWNLOAD_COMPLETE = "android.intent.action.DOWNLOAD_COMPLETE";
public static final java.lang.String ACTION_NOTIFICATION_CLICKED = "android.intent.action.DOWNLOAD_NOTIFICATION_CLICKED";
public static final java.lang.String ACTION_VIEW_DOWNLOADS = "android.intent.action.VIEW_DOWNLOADS";
public static final java.lang.String INTENT_EXTRAS_SORT_BY_SIZE = "android.app.DownloadManager.extra_sortBySize";
public static final java.lang.String EXTRA_DOWNLOAD_ID = "extra_download_id";
public static final java.lang.String EXTRA_NOTIFICATION_CLICK_DOWNLOAD_IDS = "extra_click_download_ids";
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy