public class RoadblockIntentBuilder extends IntentBuilder
intent| Constructor and Description |
|---|
RoadblockIntentBuilder(android.content.Intent intent)
Constructor for the intent builder which changes the given intent
|
| Modifier and Type | Method and Description |
|---|---|
RoadblockIntentBuilder |
addRoadblock(long id,
double latitude,
double longitude,
double azimuth,
int emergencyClass,
java.util.Date startDate,
java.util.Date endDate)
Add a roadblock
|
RoadblockIntentBuilder |
addRoadblock(RoadblockDescription description)
Add a roadblock
|
android.content.Intent |
build()
Build the intent
|
java.lang.String |
currentRoadblocksToString()
Convenience function that creates a string from the added roadblocks (identical to the one that will be added to the intent)
|
RoadblockIntentBuilder |
resetNavigatorVisibility(boolean resetVisibility)
Optional.
|
RoadblockIntentBuilder |
setBringToFront()
Set the flag that the app should be brought to the front
|
getPackage, setIntentTarget, setLoginCredentialspublic RoadblockIntentBuilder(android.content.Intent intent)
intent - the intent that should be modified, should not have anything set before passing to thispublic RoadblockIntentBuilder addRoadblock(RoadblockDescription description)
description - the roadblock description to addpublic RoadblockIntentBuilder addRoadblock(long id, double latitude, double longitude, double azimuth, int emergencyClass, java.util.Date startDate, java.util.Date endDate)
id - the id of the roadblocklongitude - the longitudelatitude - the latitudeazimuth - the azimuth IN DEGREESemergencyClass - the emergency classstartDate - the start dateendDate - the end datepublic RoadblockIntentBuilder setBringToFront()
public RoadblockIntentBuilder 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 currentRoadblocksToString()