public class ContextHubService
extends IContextHubService.Stub
Modifier and Type | Field and Description |
---|---|
static int |
ANY_HUB |
static String |
CONTEXTHUB_SERVICE |
static int |
MSG_LOAD_NANO_APP |
static int |
MSG_UNLOAD_NANO_APP |
Constructor and Description |
---|
ContextHubService(Context context) |
Modifier and Type | Method and Description |
---|---|
protected void |
dump(FileDescriptor fd,
PrintWriter pw,
String[] args) |
int[] |
findNanoAppOnHub(int hubHandle,
NanoAppFilter filter) |
int[] |
getContextHubHandles() |
ContextHubInfo |
getContextHubInfo(int contextHubHandle) |
NanoAppInstanceInfo |
getNanoAppInstanceInfo(int nanoAppInstanceHandle) |
int |
loadNanoApp(int contextHubHandle,
NanoApp app) |
int |
registerCallback(IContextHubCallback callback) |
int |
sendMessage(int hubHandle,
int nanoAppHandle,
ContextHubMessage msg) |
int |
unloadNanoApp(int nanoAppInstanceHandle) |
public static final String CONTEXTHUB_SERVICE
public static final int ANY_HUB
public static final int MSG_LOAD_NANO_APP
public static final int MSG_UNLOAD_NANO_APP
public ContextHubService(Context context)
public int registerCallback(IContextHubCallback callback) throws RemoteException
RemoteException
public int[] getContextHubHandles() throws RemoteException
RemoteException
public ContextHubInfo getContextHubInfo(int contextHubHandle) throws RemoteException
RemoteException
public int loadNanoApp(int contextHubHandle, NanoApp app) throws RemoteException
RemoteException
public int unloadNanoApp(int nanoAppInstanceHandle) throws RemoteException
RemoteException
public NanoAppInstanceInfo getNanoAppInstanceInfo(int nanoAppInstanceHandle) throws RemoteException
RemoteException
public int[] findNanoAppOnHub(int hubHandle, NanoAppFilter filter) throws RemoteException
RemoteException
public int sendMessage(int hubHandle, int nanoAppHandle, ContextHubMessage msg) throws RemoteException
RemoteException
protected void dump(FileDescriptor fd, PrintWriter pw, String[] args)