public class PoiIntentBuilder extends IntentBuilder
intent| Constructor and Description |
|---|
PoiIntentBuilder(android.content.Intent intent)
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
PoiIntentBuilder |
addPoi(DynamicPoiDefinition definition)
Convenience function to add a
DynamicPoiDefinition if it already exists in full |
PoiIntentBuilder |
addPoi(long id,
java.lang.String name,
boolean showOnMap,
java.lang.String iconPath,
float horizontalCenter,
float verticalCenter,
double latitude,
double longitude)
Deprecated.
File storage access was removed in Android 10, so universal paths are not available anymore. Please use one of the other addPoi methods.
|
PoiIntentBuilder |
addPoi(long id,
java.lang.String name,
boolean showOnMap,
android.net.Uri iconUri,
android.app.Activity resolveUriActivity,
float horizontalCenter,
float verticalCenter,
double latitude,
double longitude)
Add a new poi to the list of pois.
|
PoiIntentBuilder |
addPoi(long id,
java.lang.String name,
boolean showOnMap,
android.net.Uri iconUri,
android.content.ContentResolver uriResolver,
float horizontalCenter,
float verticalCenter,
double latitude,
double longitude)
Add a new poi to the list of pois.
|
android.content.Intent |
build()
Constructs the intent with the specific parameters set
|
PoiIntentBuilder |
resetNavigatorVisibility(boolean resetVisibility)
Optional.
|
PoiIntentBuilder |
setAppUrl(java.lang.String appUrl)
Set the url that will be used by the Navigator to send an intent to the calling app
|
PoiIntentBuilder |
setButtonText(java.lang.String buttonText)
Set the text that should be displayed on the button that lets the user return to the sending application
|
PoiIntentBuilder |
setRotation(java.lang.String rotation)
Optionally set the map rotation to apply.
|
PoiIntentBuilder |
setShowPoisOnMap(boolean showPoisOnMap)
Set the flag, whether the map should be centered above the new pois or not
|
PoiIntentBuilder |
setZoomLevel(int zoomLevel)
Optionally set the zoom level from 0 (whole world) to 21 (most detailed street level).
|
getPackage, setIntentTarget, setLoginCredentialspublic PoiIntentBuilder(android.content.Intent intent)
intent - The intent to be modifiedpublic PoiIntentBuilder setButtonText(java.lang.String buttonText)
buttonText - The text of the buttonpublic PoiIntentBuilder setAppUrl(java.lang.String appUrl)
appUrl - The url of the app@Deprecated public PoiIntentBuilder addPoi(long id, java.lang.String name, boolean showOnMap, java.lang.String iconPath, float horizontalCenter, float verticalCenter, double latitude, double longitude)
id - The id of the poiname - The name of the new poishowOnMap - True if the name of the poi should be displayed on the map as a labeliconPath - The path to the icon that should be used. May be nullhorizontalCenter - The horizontal center of the icon in percentverticalCenter - The vertical center of the icon in percentlatitude - The latitude of the poilongitude - The longitude of the poipublic PoiIntentBuilder addPoi(long id, java.lang.String name, boolean showOnMap, android.net.Uri iconUri, android.app.Activity resolveUriActivity, float horizontalCenter, float verticalCenter, double latitude, double longitude)
id - The id of the poiname - The name of the new poishowOnMap - True if the name of the poi should be displayed on the map as a labeliconUri - The uri of the icon that should be used. May be nullresolveUriActivity - The activity of the content resolver that is required to transform the uri into the raw icon data. May be nullhorizontalCenter - The horizontal center of the icon in percentverticalCenter - The vertical center of the icon in percentlatitude - The latitude of the poilongitude - The longitude of the poipublic PoiIntentBuilder addPoi(long id, java.lang.String name, boolean showOnMap, android.net.Uri iconUri, android.content.ContentResolver uriResolver, float horizontalCenter, float verticalCenter, double latitude, double longitude)
id - The id of the poiname - The name of the new poishowOnMap - True if the name of the poi should be displayed on the map as a labeliconUri - The uri of the icon that should be used. May be nulluriResolver - The content resolver that is required to transform the uri into the raw icon data. May be nullhorizontalCenter - The horizontal center of the icon in percentverticalCenter - The vertical center of the icon in percentlatitude - The latitude of the poilongitude - The longitude of the poipublic PoiIntentBuilder addPoi(DynamicPoiDefinition definition)
DynamicPoiDefinition if it already exists in fulldefinition - The definition to addpublic PoiIntentBuilder setShowPoisOnMap(boolean showPoisOnMap)
showPoisOnMap - True to center the map above the new poispublic PoiIntentBuilder setZoomLevel(int zoomLevel)
zoomLevel - The zoom level from 0 (whole world) to 21 (most detailed street level).
Use -1 to ignore the valuepublic PoiIntentBuilder setRotation(java.lang.String rotation)
rotation - The map rotation to apply.
For the standard rotations use one of IntentConstants.LN_ROTATE_MAP_ROTATION_NORTH, IntentConstants.LN_ROTATE_MAP_ROTATION_3D, IntentConstants.LN_ROTATE_MAP_ROTATION_VEHICLE
Use the empty string to ignore the valuepublic PoiIntentBuilder resetNavigatorVisibility(boolean resetVisibility)
resetVisibility - True to return to the previous visibility of the navigator, false to keep the navigator visiblepublic android.content.Intent build()
IntentBuilderbuild in class IntentBuilder