SiyataLedManagerApi

object SiyataLedManagerApi

This API is the interface with SIYATA SD7 device. This api should be used only when the device is Siyata SD7 and in the device settings click the "keys function settings" and then under "Rotary" menu select "Channel". Use case : You need to init this api by calling the SiyataLedManagerApi.registerToSiyataSD7Event() and pass all needed params to instantiate this api. This api will receive the Channel List receive at the init step and must also be received at runtime when there is any update via the method SiyataLedManagerApi.updateChannelsList(). Then the Api will display the channel list and each time user use the knob button to change channel, API receive this event from the system and CONNECT the new channel and DISCONNECT the current

Properties

Link copied to clipboard
const val CLASS_NAME: String

Functions

Link copied to clipboard
fun clearScreen(level: Int)

Call this method to clear the LED screen

Link copied to clipboard
fun drawMsgText(    id: String? = null,     line1: String? = null,     line2: String?,     timeout: Boolean = false)

Call this method to write a message text on the LED screen, message should have a first and second line

Link copied to clipboard
fun registerToSiyataSD7Event(    context: Context,     channels: List<Channel>,     disconnectChannel: (Long) -> Unit,     connectChannel: (Long) -> Unit)

Call this method to :

Link copied to clipboard
fun unregisterFromSiyataSD7Event(context: Context)

Call this method to unregister from the Siyata Event

Link copied to clipboard
fun updateChannelsList(channels: List<Channel>)

Call this method every time there is an update in the channel list. it will refresh the channel list