public static class

CoreParams.Builder

extends Object
java.lang.Object
   ↳ com.mapsted.positioning.CoreParams.Builder<M extends com.mapsted.positioning.CoreParams, B extends com.mapsted.positioning.CoreParams.Builder<M, B>>
Known Indirect Subclasses

Summary

Public Methods
CoreParams build()
Building the Core Params will initialize the SDK variables.
B setAutoWakeFromDeepSleep(boolean enable)
Set whether the SDK should auto-restart itself if the system clears it from memory due to user inactivity
B setBlueDotCriteria(BlueDotCriteria criteria)
Sets the blue dot criteria that should be used for deciding when to offer blue dot
B setForegroundServiceDetails(MapstedForegroundServiceDetails details)
Set customized foreground service details (can be updated later)
B setPrefetchMapData(boolean enable)
Set whether the SDK should prefetch (download) map data
B setSimulatorPath(CoreParams.SimulatorPath simulatorPath)
Force the blue dot to follow a simulator path.
B setWasAwokenFromDeepSleep(boolean awoken)
Sets whether or not this initialization was due being awoken from a deep sleep
[Expand]
Inherited Methods
From class java.lang.Object

Public Methods

public CoreParams build ()

Building the Core Params will initialize the SDK variables. This must be called prior to initializing the SDK or the behaviour may be undefined.

public B setAutoWakeFromDeepSleep (boolean enable)

Set whether the SDK should auto-restart itself if the system clears it from memory due to user inactivity

Parameters
enable whether or not to auto wake up (default: false)
Returns
  • The builder

public B setBlueDotCriteria (BlueDotCriteria criteria)

Sets the blue dot criteria that should be used for deciding when to offer blue dot

Parameters
criteria the criteria
Returns
  • The builder

public B setForegroundServiceDetails (MapstedForegroundServiceDetails details)

Set customized foreground service details (can be updated later)

Parameters
details Foreground service details
Returns
  • The builder

public B setPrefetchMapData (boolean enable)

Set whether the SDK should prefetch (download) map data

Parameters
enable whether or not to prefetch map data (default: false)
Returns
  • The builder

public B setSimulatorPath (CoreParams.SimulatorPath simulatorPath)

Force the blue dot to follow a simulator path. Note that this is for developer/debug purposes

Parameters
simulatorPath Simulator path to follow
Returns
  • The builder

public B setWasAwokenFromDeepSleep (boolean awoken)

Sets whether or not this initialization was due being awoken from a deep sleep

Parameters
awoken whether or not it was awoken (default false)
Returns
  • The builder