startWidgetRoomIdEvent

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

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

Parameters

roomId

: String

callbackHandler

returns a generic event.

onStop

: ((String) -> Unit)?