navit
0.5.3-trunk
|
Public Member Functions | |
native void | onFeedReceived (long id, String feed) |
void | onReceive (Context context, Intent intent) |
Package Functions | |
NavitTraff (Context context, long cbid) | |
Private Attributes | |
final long | mCbid |
Static Private Attributes | |
static final String | ACTION_TRAFF_FEED = "org.traffxml.traff.FEED" |
static final String | ACTION_TRAFF_POLL = "org.traffxml.traff.POLL" |
static final String | EXTRA_FEED = "feed" |
The TraFF receiver implementation.
This class registers the broadcast receiver for TraFF feeds, polls all registered sources once on creation, receives TraFF feeds and forwards them to the traffic module for processing.
|
inlinepackage |
Creates a new
instance.
Creating a new
instance registers a broadcast receiver for TraFF broadcasts and polls all registered sources once to ensure we have messages which were received by these sources before we started up.
context | The context |
cbid | The callback identifier for the native method to call upon receiving a feed |
native void org.navitproject.navit.NavitTraff.onFeedReceived | ( | long | id, |
String | feed | ||
) |
Forwards a newly received TraFF feed to the traffic module for processing.
This is called when a TraFF feed is received.
id | The identifier for the native callback implementation |
feed | The TraFF feed |
Referenced by org.navitproject.navit.NavitTraff.onReceive().
|
inline |
|
staticprivate |
|
staticprivate |
|
staticprivate |
|
private |