public interface TripEvent
TripEventManager
.
Note: This interface (and any containing interfaces) is still in beta and might be subject to change.
Modifier and Type | Interface and Description |
---|---|
static interface |
TripEvent.Listener
Listener to get updates of all the current registered events.
|
static interface |
TripEvent.ListListener
Listener to get a List of TripEvent objects.
|
static interface |
TripEvent.ModifyListener
Listener for modifying the TripEvent.
|
static class |
TripEvent.ModifyResult
Result codes for adding/modifying/removing TripEvent objects.
|
Modifier and Type | Method and Description |
---|---|
org.json.JSONObject |
getAttributes()
Get the attributes of the event.
|
int |
getLength()
Get the length of the event in meters.
|
int |
getOffset()
Get the offset of the event in meters.
|
int getOffset()
int getLength()
org.json.JSONObject getAttributes()
Format of the JSON attributes object
{ color : "<The color of the event>", icon_uri : "<The URI for the icon Drawable>" }
The following attributes are currently supported
color
—
The color of the event, expressed as ARGB, for example; FF00FF00 for a completely green and opaque color.
This will color the background of the pin in the routebar with the specified colour.
icon_uri
—
The Uri for the icon Drawable. The location of a Drawable should be specified
as a reference to a resource in another package: res:package-name:type/entry
.
This icon will be used in both the zoomed in state (when approaching or passing the event),
as well as scaled down in the actual pin in the routebar.
res:com.tomtom.test:drawable/my_image