public class LNGeoResponseBuilder
extends java.lang.Object
| Constructor and Description |
|---|
LNGeoResponseBuilder()
Constructor that creates a new base intent
|
LNGeoResponseBuilder(android.content.Intent intent)
Constructor that binds the given base intent
|
| Modifier and Type | Method and Description |
|---|---|
android.content.Intent |
build()
Synonym for
buildIntent() |
android.content.Intent |
buildBroadcast()
Constructs the broadcast intent with the specific parameters to share with the all apps that registered broadcast receivers for this broadcast
|
android.content.Intent |
buildIntent()
Constructs the response intent with the specific parameters to share with the app that requested the information
|
LNGeoResponseBuilder |
setCurrentPosition(java.lang.String currentPosition)
Sets current position as decimal coordinate: concatenated floating points that are separated with a comma (WGS84 Decimal Coordinate).
|
LNGeoResponseBuilder |
setCurrentSpeed(java.lang.Integer currentSpeed)
Sets the current speed in km/h
|
LNGeoResponseBuilder |
setDestinations(java.lang.String destinations)
Sets the list of current destination locations as concatenated string
|
LNGeoResponseBuilder |
setDistanceNext(java.lang.Double distanceNext)
Sets the remaining distance to the next destination
|
LNGeoResponseBuilder |
setDistanceTotal(java.lang.Double distanceTotal)
Sets the remaining distance to the last destination
|
LNGeoResponseBuilder |
setEtaNext(java.lang.Long etaNext)
Sets the unix time stamp of the estimated time of arrival to the next destination
|
LNGeoResponseBuilder |
setEtaTotal(java.lang.Long etaTotal)
Sets the unix time stamp of the estimated time of arrival to the last destination
|
LNGeoResponseBuilder |
setEventType(java.lang.String eventType)
Sets the event type that caused the creation of this shared information package.
|
LNGeoResponseBuilder |
setLatitude(java.lang.Double latitude)
Sets the decimal latitude of the current coordinate
|
LNGeoResponseBuilder |
setLongitude(java.lang.Double longitude)
Sets the decimal longitude of the current coordinate
|
LNGeoResponseBuilder |
setNavigating(java.lang.Boolean isNavigating)
Sets the flag that indicates if a navigation process is currently active
|
LNGeoResponseBuilder |
setSpeedLimit(java.lang.Integer maxSpeed)
Sets the current speed limit in km/h
|
public LNGeoResponseBuilder()
public LNGeoResponseBuilder(android.content.Intent intent)
intent - The base intent that should be modifiedpublic LNGeoResponseBuilder setDestinations(java.lang.String destinations)
destinations - The list of current destination locations as concatenated stringpublic LNGeoResponseBuilder setEtaTotal(java.lang.Long etaTotal)
etaTotal - The unix time stamp of the estimated time of arrival to the last destinationpublic LNGeoResponseBuilder setEtaNext(java.lang.Long etaNext)
etaNext - The unix time stamp of the estimated time of arrival to the next destinationpublic LNGeoResponseBuilder setDistanceTotal(java.lang.Double distanceTotal)
distanceTotal - The remaining distance to the last destinationpublic LNGeoResponseBuilder setDistanceNext(java.lang.Double distanceNext)
distanceNext - The remaining distance to the next destinationpublic LNGeoResponseBuilder setCurrentPosition(java.lang.String currentPosition)
currentPosition - The current position as decimal coordinate: concatenated floating points that are separated with a comma (WGS84 Decimal Coordinate)public LNGeoResponseBuilder setLatitude(java.lang.Double latitude)
latitude - The decimal latitude of the current coordinatepublic LNGeoResponseBuilder setLongitude(java.lang.Double longitude)
longitude - The decimal longitude of the current coordinatepublic LNGeoResponseBuilder setCurrentSpeed(java.lang.Integer currentSpeed)
currentSpeed - The current speed in km/hpublic LNGeoResponseBuilder setSpeedLimit(java.lang.Integer maxSpeed)
maxSpeed - The speed limit in km/hpublic LNGeoResponseBuilder setNavigating(java.lang.Boolean isNavigating)
isNavigating - True if navigation is in progress, otherwise falsepublic LNGeoResponseBuilder setEventType(java.lang.String eventType)
IntentConstants.LB_BROADCAST_SINGLE_REQUEST (will be overridden inbuildIntent()eventType - The event type that caused the creation of this shared information packagepublic android.content.Intent build()
buildIntent()public android.content.Intent buildIntent()
public android.content.Intent buildBroadcast()