GlassClient

接続済みの1台を表す。GlassManager.connectedDevice から得る。

メソッド シグネチャ
connected val connected: StateFlow<Boolean>
deviceName val deviceName: String?
deviceIdentifier val deviceIdentifier: String?
isConnectionValid fun isConnectionValid(): Boolean
createCommandManager fun createCommandManager(): CommandManager
micChannel val micChannel: StateFlow<Int?>
fun setMicChannel(channel: Int?)
sendCommand suspend fun sendCommand(command: ByteArray)
sendCommandList suspend fun sendCommandList(command: List<ByteArray>)
sendText suspend fun sendText(page: Byte, content: String)
cancelPendingPackets suspend fun cancelPendingPackets()
reboot suspend fun reboot()

Table of contents