Class PlacePickerOptions.Builder
java.lang.Object
com.trimblemaps.mapsdk.plugins.places.picker.model.PlacePickerOptions.Builder
- Enclosing class:
PlacePickerOptions
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract PlacePickerOptionsbuild()abstract PlacePickerOptions.BuilderincludeDeviceLocationButton(boolean includeDeviceLocationButton) Determine whether an Android-system Floating Action Button is included in the PlacePickerActivity UI.abstract PlacePickerOptions.BuilderincludeReverseGeocode(boolean includeReverseGeocode) Determine whether to include a bottom sheet in the PlacePickerActivity to display geocoding information associated with coordinates at the center of the map.abstract PlacePickerOptions.Builderabstract PlacePickerOptions.BuilderstartingBounds(com.trimblemaps.mapsdk.geometry.LatLngBounds bounds) abstract PlacePickerOptions.BuilderstatingCameraPosition(com.trimblemaps.mapsdk.camera.CameraPosition cameraPosition) abstract PlacePickerOptions.BuildertoolbarColor(Integer toolbarColor)
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
toolbarColor
-
language
-
startingBounds
public abstract PlacePickerOptions.Builder startingBounds(@NonNull com.trimblemaps.mapsdk.geometry.LatLngBounds bounds) -
statingCameraPosition
public abstract PlacePickerOptions.Builder statingCameraPosition(@NonNull com.trimblemaps.mapsdk.camera.CameraPosition cameraPosition) -
includeReverseGeocode
Determine whether to include a bottom sheet in the PlacePickerActivity to display geocoding information associated with coordinates at the center of the map. A new geocoding call is made every time the map is moved when true is passed through includeReverseGeocode().- Parameters:
includeReverseGeocode- whether or not to make a reverse geocoding call to retrieve and display information associated with the picked location's coordinates. Defaults to true.- Returns:
- this builder instance for chaining options together
-
includeDeviceLocationButton
public abstract PlacePickerOptions.Builder includeDeviceLocationButton(boolean includeDeviceLocationButton) Determine whether an Android-system Floating Action Button is included in the PlacePickerActivity UI. Clicking on this Floating Action Button will move the map camera to the device's location. False is the default if this method isn't used in building the PlacePickerOptions object.- Parameters:
includeDeviceLocationButton-- Returns:
- this builder instance for chaining options together
-
build
-