setCameraTrackingMode

abstract fun setCameraTrackingMode(trackingMode: CameraTrackingMode)

Configures the camera tracking mode and updates it if needed.

This function allows you to set camera configuration parameters for a given CameraTrackingMode. The configuration gets updated immediately if the provided mode matches the current mode active on the map.

Note: If the current camera tracking mode on the map matches the provided mode, the map's camera tracking mode will be updated with the new configuration. Otherwise, the configuration is stored internally and will be applied when that mode is activated later on.

Parameters

trackingMode

The CameraTrackingMode that specifies the desired camera tracking mode configuration.