startWidgetIdEvent

fun BlueGPSLib.startWidgetIdEvent(checkTimeout: Int = 30000, widgetId: String, callbackHandler: (Event) -> Unit? = null, onStop: (String) -> Unit? = null)

Accessory method for Stream events for a specific widget. If a previously job is active, its stopped and a new job started with the new configuration.

Parameters

widgetId

: String

checkTimeout

: Int

callbackHandler

returns a generic event.

onStop

: ((String) -> Unit)?