Package com.navmii.sdk
Class Sdk.ConfigurationSettings.Builder
java.lang.Object
com.navmii.sdk.Sdk.ConfigurationSettings.Builder
- Enclosing class:
- Sdk.ConfigurationSettings
public static final class Sdk.ConfigurationSettings.Builder
extends java.lang.Object
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
Modifier and Type Method Description Sdk.ConfigurationSettings
build()
Sdk.ConfigurationSettings.Builder
clearMapCacheOnDisk()
Call this method in order to clear downloaded map data before initialization.Sdk.ConfigurationSettings.Builder
setCustomResourcesPath(java.lang.String customResourcesPath)
The path to a folder containing resources to customize map view.Sdk.ConfigurationSettings.Builder
setInnerFilesPath(java.lang.String innerFilesPath)
The path to a folder where the SDK will put files created at runtime.Sdk.ConfigurationSettings.Builder
setOfflineMapsPath(java.lang.String offlineMapsPath)
The path to a folder containing offline maps.Sdk.ConfigurationSettings.Builder
setUrlForTrafficServer(java.lang.String urlForTrafficServer)
The URL of the server from which the traffic data will be downloaded.Sdk.ConfigurationSettings.Builder
setUseOnlineBetaMaps(boolean useOnlineBetaMaps)
Indicates that the SDK should use server with beta map tiles.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setInnerFilesPath
The path to a folder where the SDK will put files created at runtime. The default path is either Context.getFilesDir() or Context.getExternalFilesDir(null), depending on whether the application is installed onto internal storage or onto external storage.- Parameters:
innerFilesPath
- The path.- Returns:
- The builder.
-
setOfflineMapsPath
The path to a folder containing offline maps. Specify this folder to provide the SDK with maps, which will be used in the offline version of the SDK.- Parameters:
offlineMapsPath
- The path.- Returns:
- The builder.
-
setCustomResourcesPath
public Sdk.ConfigurationSettings.Builder setCustomResourcesPath(java.lang.String customResourcesPath)The path to a folder containing resources to customize map view. Specify this folder if you want to create your own map style.- Parameters:
customResourcesPath
- The path.- Returns:
- The builder.
-
clearMapCacheOnDisk
Call this method in order to clear downloaded map data before initialization.- Returns:
- The builder.
-
setUrlForTrafficServer
public Sdk.ConfigurationSettings.Builder setUrlForTrafficServer(java.lang.String urlForTrafficServer)The URL of the server from which the traffic data will be downloaded.- Parameters:
urlForTrafficServer
- The URL.- Returns:
- The builder.
-
setUseOnlineBetaMaps
Indicates that the SDK should use server with beta map tiles.Note: If SDK uses offline maps, changing this setting has no effect.
- Parameters:
useOnlineBetaMaps
- True to use beta maps, false to use release ones.- Returns:
- The builder.
-
build
- Returns:
- An instance of the ConfigurationSettings.
-