public class DownloaderServiceMarshaller extends Object
CreateProxy(android.os.Messenger) during the IDownloaderClient.onServiceConnected(android.os.Messenger) callback in your activity in order to instantiate
an IDownloaderService object that you can then use to issue commands to the DownloaderService (such as to pause and resume downloads).| Modifier and Type | Field and Description |
|---|---|
static int |
MSG_REQUEST_ABORT_DOWNLOAD |
static int |
MSG_REQUEST_CLIENT_UPDATE |
static int |
MSG_REQUEST_CONTINUE_DOWNLOAD |
static int |
MSG_REQUEST_DOWNLOAD_STATE |
static int |
MSG_REQUEST_PAUSE_DOWNLOAD |
static int |
MSG_SET_DOWNLOAD_FLAGS |
static String |
PARAM_MESSENGER |
static String |
PARAMS_FLAGS |
| Constructor and Description |
|---|
DownloaderServiceMarshaller() |
| Modifier and Type | Method and Description |
|---|---|
static IDownloaderService |
CreateProxy(android.os.Messenger msg)
Returns a proxy that will marshall calls to IDownloaderService methods
|
static IStub |
CreateStub(IDownloaderService itf)
Returns a stub object that, when connected, will listen for marshalled
IDownloaderService methods and translate them into calls to the supplied
interface.
|
public static final int MSG_REQUEST_ABORT_DOWNLOAD
public static final int MSG_REQUEST_PAUSE_DOWNLOAD
public static final int MSG_SET_DOWNLOAD_FLAGS
public static final int MSG_REQUEST_CONTINUE_DOWNLOAD
public static final int MSG_REQUEST_DOWNLOAD_STATE
public static final int MSG_REQUEST_CLIENT_UPDATE
public static final String PARAMS_FLAGS
public static final String PARAM_MESSENGER
public static IDownloaderService CreateProxy(android.os.Messenger msg)
ctx - public static IStub CreateStub(IDownloaderService itf)
itf - An implementation of IDownloaderService that will be called
when remote method calls are unmarshalled.Copyright © 2012–2014 simpligility technologies inc.. All rights reserved.