FollowMyLocationOptions.Builder

  • FollowMyLocationOptions.Builder helps configure how the map camera follows the user's location.

  • It provides methods to set the desired zoom level of the camera when following the location.

  • The build() method creates a FollowMyLocationOptions instance based on the builder's configuration.

  • Zoom levels can be set within a specific range (2 to 21), otherwise, an exception is thrown.

public static final class FollowMyLocationOptions.Builder extends Object

A builder that helps configure an instance of FollowMyLocationOptions.

Public Constructor Summary

Public Method Summary

FollowMyLocationOptions
build()
Builds the FollowMyLocationOptions object from the state accumulated in this FollowMyLocationOptions.Builder.
FollowMyLocationOptions.Builder
setZoomLevel(float zoomLevel)
Sets the zoom level of the camera.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public FollowMyLocationOptions build ()

Builds the FollowMyLocationOptions object from the state accumulated in this FollowMyLocationOptions.Builder.

public FollowMyLocationOptions.Builder setZoomLevel (float zoomLevel)

Sets the zoom level of the camera.

Parameters
zoomLevel
Throws
IllegalArgumentException if zoomLevel is outside the interval (2, 21).