public class RoadblockPolygonIntentBuilder extends IntentBuilder
intent| Constructor and Description |
|---|
RoadblockPolygonIntentBuilder(android.content.Intent intent)
Constructor for the intent builder which changes the given intent
|
| Modifier and Type | Method and Description |
|---|---|
RoadblockPolygonIntentBuilder |
addPolygonJson(java.lang.String polygonJson)
Adds the roadblock polygon of the given json to the blocking list
|
RoadblockPolygonIntentBuilder |
addRoadblockPolygon(long id,
java.util.List<Coordinate> polygonCoordinates,
boolean ingoing,
boolean outgoing,
int emergencyClass,
java.util.Date startDate,
java.util.Date endDate)
Create and add the a roadblock polygon to the blocking list
|
RoadblockPolygonIntentBuilder |
addRoadblockPolygon(RoadblockPolygonDescription description)
Add a roadblock
|
android.content.Intent |
build()
Build the intent
|
java.lang.String[] |
currentRoadblocksToStringArray()
Convenience function that creates a string from the added roadblocks (identical to the one that will be added to the intent)
|
RoadblockPolygonIntentBuilder |
resetNavigatorVisibility(boolean resetVisibility)
Optional.
|
RoadblockPolygonIntentBuilder |
setBringToFront()
Set the flag that the app should be brought to the front
|
getPackage, setIntentTarget, setLoginCredentialspublic RoadblockPolygonIntentBuilder(android.content.Intent intent)
intent - the intent that should be modified, should not have anything set before passing to thispublic RoadblockPolygonIntentBuilder addRoadblockPolygon(RoadblockPolygonDescription description)
description - the roadblock description to addpublic RoadblockPolygonIntentBuilder addRoadblockPolygon(long id, java.util.List<Coordinate> polygonCoordinates, boolean ingoing, boolean outgoing, int emergencyClass, java.util.Date startDate, java.util.Date endDate)
id - The unique id of this roadblock polygon that can be reused to update its properties.
If another roadblock intent with the same id is executed, it will override the previous roadblock propertiespolygonCoordinates - The list of coordinates as latitude/longitude pairsingoing - Flag that indicates if all edges leading in the polygon should be closedoutgoing - Flag that indicates if all edges leading out of the polygon should be closedemergencyClass - The emergency class up to which the road block is effectivestartDate - The instant from which the road block is valid.
May be null to signify that there is no dedicated startendDate - The instant to which the road block is valid.
May be null to signify that the road block does not run outpublic RoadblockPolygonIntentBuilder addPolygonJson(java.lang.String polygonJson) throws java.lang.IllegalArgumentException
polygonJson - The json that contains the polygon coordinates and the roadblock propertiesjava.lang.IllegalArgumentException - When an invalid polygon geo json was passedpublic RoadblockPolygonIntentBuilder setBringToFront()
public RoadblockPolygonIntentBuilder resetNavigatorVisibility(boolean resetVisibility)
resetVisibility - True to return to the previous visibility of the navigator, false to keep the navigator visiblepublic android.content.Intent build()
build in class IntentBuilderpublic java.lang.String[] currentRoadblocksToStringArray()