public class Router
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
Router.ConnFailureCode
Reasons why peer device connections failed.
|
static class |
Router.Intent
Intenting api allows clients communicate with Router services using intents;
clients will send intents/messages to Router services by calling startService() and
received intents/messages from Router services by registering BroadcastReceivers.
|
static class |
Router.MsgId
Messenger api allows clients communicate with Router services using
"Messenger" design pattern with messages identified by message ids;
clients will use a messenger to send messages to Router services and
register another messenger to receive messages from Router services;
there is 1-1 correspondence between intent names and message ids.
|
static class |
Router.MsgKey
key names for indexing data items in message bundle.
|
Constructor and Description |
---|
Router() |
Modifier and Type | Method and Description |
---|---|
static java.lang.String |
MsgName(int msgId)
translate message ids into string for printout
|