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 autoWake)
Set whether the SDK should auto-restart itself if the system clears it from memory due to user inactivity
B setForegroundServiceDetails(MapstedForegroundServiceDetails details)
Set customized foreground service details (can be updated later)
B setSimulatorPath(CoreParams.SimulatorPath simulatorPath)
Force the blue dot to follow a simulator path.
[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 autoWake)

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

Parameters
autoWake whether or not to auto wake up (default: false)
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 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