public interface IDownloaderService
You can acquire a proxy that implements this interface for your service by
calling DownloaderServiceMarshaller.CreateProxy(android.os.Messenger) during the
IDownloaderClient.onServiceConnected(android.os.Messenger) callback. At which point, you
should immediately call onClientUpdated(android.os.Messenger).
| Modifier and Type | Field and Description |
|---|---|
static int |
FLAGS_DOWNLOAD_OVER_CELLULAR
Set this flag in response to the
IDownloaderClient.STATE_PAUSED_NEED_CELLULAR_PERMISSION state and then
call RequestContinueDownload to resume a download
|
| Modifier and Type | Method and Description |
|---|---|
void |
onClientUpdated(android.os.Messenger clientMessenger)
Call this when you get
IDownloaderClient.onServiceConnected(Messenger m) from the
DownloaderClient to register the client with the service. |
void |
requestAbortDownload()
Request that the service abort the current download.
|
void |
requestContinueDownload()
Request that the service continue a paused download, when in any paused
or failed state, including
IDownloaderClient.STATE_PAUSED_BY_REQUEST. |
void |
requestDownloadStatus()
Requests that the download status be sent to the client.
|
void |
requestPauseDownload()
Request that the service pause the current download.
|
void |
setDownloadFlags(int flags)
Set the flags for this download (e.g.
|
static final int FLAGS_DOWNLOAD_OVER_CELLULAR
void requestAbortDownload()
IDownloaderClient.STATE_ABORTED.void requestPauseDownload()
IDownloaderClient.STATE_PAUSED_BY_REQUEST.void requestContinueDownload()
IDownloaderClient.STATE_PAUSED_BY_REQUEST.void setDownloadFlags(int flags)
DownloaderService.FLAGS_DOWNLOAD_OVER_CELLULAR).flags - void requestDownloadStatus()
void onClientUpdated(android.os.Messenger clientMessenger)
IDownloaderClient.onServiceConnected(Messenger m) from the
DownloaderClient to register the client with the service. It will
automatically send the current status to the client.clientMessenger - Copyright © 2012–2014 simpligility technologies inc.. All rights reserved.