register To Siyata SD7Event
fun registerToSiyataSD7Event( context: Context, channels: List<Channel>, disconnectChannel: (Long) -> Unit, connectChannel: (Long) -> Unit)
Content copied to clipboard
Call this method to :
Instantiate the Led display
Register the rotary knob receiver to receive next and previous intent
Initiate some params Note this method should be called at the start of the application and it will be excecuted only when it is possible to instantiate the Led display
Parameters
context
: the application context
channels
: all channel
disconnect Channel
: method to be executed when need to disconnect a channel
connect Channel
: method to be executed when need to connect a channel