Class RegionSelectionOptions.Builder
- java.lang.Object
-
- com.mapbox.mapboxsdk.plugins.offline.model.RegionSelectionOptions.Builder
-
- Enclosing class:
- RegionSelectionOptions
public abstract static class RegionSelectionOptions.Builder extends java.lang.ObjectThe Builder class in charge of constructing this class and setting the values accordingly.- Since:
- 0.2.0
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract RegionSelectionOptionsbuild()Build a newRegionSelectionOptionsinstance using the information and values provided inside this builder classabstract RegionSelectionOptions.BuilderstartingBounds(com.mapbox.mapboxsdk.geometry.LatLngBounds bounds)Define the map's starting camera position by providing a bounding boxabstract RegionSelectionOptions.BuilderstatingCameraPosition(com.mapbox.mapboxsdk.camera.CameraPosition cameraPosition)Define the map's starting camera position by providing a camera position.
-
-
-
Method Detail
-
startingBounds
public abstract RegionSelectionOptions.Builder startingBounds(@NonNull com.mapbox.mapboxsdk.geometry.LatLngBounds bounds)
Define the map's starting camera position by providing a bounding box- Parameters:
bounds- the bounding box which is where theOfflineActivityinitial map's camera position will be placed- Returns:
- this builder for chaining options together
- Since:
- 0.2.0
-
statingCameraPosition
public abstract RegionSelectionOptions.Builder statingCameraPosition(@NonNull com.mapbox.mapboxsdk.camera.CameraPosition cameraPosition)
Define the map's starting camera position by providing a camera position.- Parameters:
cameraPosition- the camera position which is where theOfflineActivityinitial map's camera position will be placed- Returns:
- this builder for chaining options together
- Since:
- 0.2.0
-
build
public abstract RegionSelectionOptions build()
Build a newRegionSelectionOptionsinstance using the information and values provided inside this builder class- Returns:
- a new instance of the
RegionSelectionOptionswhich is using the values you provided in this builder - Since:
- 0.2.0
-
-