public class EnableRoadblockIntentBuilder extends IntentBuilder
intent| Constructor and Description |
|---|
EnableRoadblockIntentBuilder(android.content.Intent intent)
Constructor for the intent builder which changes the given intent
|
| Modifier and Type | Method and Description |
|---|---|
EnableRoadblockIntentBuilder |
addRoadblock(RoadblockDescription description)
Add the id of the given roadblock to the id list.
|
EnableRoadblockIntentBuilder |
addRoadblockId(long id)
Add the given roadblock id to the id list.
|
android.content.Intent |
build()
Build the intent
|
long[] |
currentRoadblocksIdsToArray()
Convenience function that creates a long array from the added roadblock ids
|
EnableRoadblockIntentBuilder |
enableAllRoadblocks()
Tells the localion navigator to enable all existing roadblocks.
|
EnableRoadblockIntentBuilder |
requireConfirmation()
Sets the flag that indicates if the user should be asked to confirm the intent execution.
|
EnableRoadblockIntentBuilder |
resetNavigatorVisibility(boolean resetVisibility)
Optional.
|
EnableRoadblockIntentBuilder |
setBringToFront()
Set the flag that the app should be brought to the front
|
getPackage, setIntentTarget, setLoginCredentialspublic EnableRoadblockIntentBuilder(android.content.Intent intent)
intent - the intent that should be modified, should not have anything set before passing to thispublic EnableRoadblockIntentBuilder enableAllRoadblocks()
public EnableRoadblockIntentBuilder requireConfirmation()
public EnableRoadblockIntentBuilder addRoadblock(RoadblockDescription description)
description - the roadblock description to addpublic EnableRoadblockIntentBuilder addRoadblockId(long id)
id - the id of the roadblockpublic EnableRoadblockIntentBuilder setBringToFront()
public EnableRoadblockIntentBuilder 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 long[] currentRoadblocksIdsToArray()