create

fun create(authenticationMode: AuthenticationMode, modeManager: SLModeManager? = null, apiEndPoint: String = "https://api.indoorsuite.combain.com/slam", resultsCallback: (List<SLPipeResult>) -> Unit = {}, monitorCallback: (SLMonitorData) -> Unit = {}, scanStateCallback: (Boolean) -> Unit = {}, nextScanTimeCallback: (Long?) -> Unit = {}, modeCallback: (SLMode) -> Unit = {}): SlamSDKConfig

Constructor for SlamSDKConfig which validate settings such that they arent conflicting with each other

Parameters

authenticationMode

decides how SlamSDK will authenticate with the SlamAPI

modeManager
  • Custom mode manager

resultsCallback

callback for when SlamSDK has new results, optional

monitorCallback

callback for when SlamSDK has new monitor data, optional

scanStateCallback

callback for when SlamSDK has new scan state, optional

nextScanTimeCallback

callback for when SlamSDK has new next scan time, optional

modeCallback

callback for when SlamSDK has new mode, optional

Throws

if config contains conflicting settings