IOSMessageStreamManager

Properties

Link copied to clipboard
abstract var serverAddress: String

Functions

Link copied to clipboard
abstract fun addDeviceToStream(deviceId: UInt)
Link copied to clipboard
abstract suspend fun getActiveDevices(): List<UInt>
Link copied to clipboard
abstract suspend fun isStreamActive(): Boolean
Link copied to clipboard
abstract fun processStreamResponse(response: Any)
Link copied to clipboard
abstract suspend fun pushEncryptedHeartbeatAndCiphertext(deviceId: UInt, heartbeats: List<ByteArray>, ciphertexts: List<ByteArray>, heartbeatBridgeReceiveEpochSeconds: List<Long?> = emptyList())
Link copied to clipboard
abstract suspend fun pushEncryptedMessages(deviceId: UInt, payloads: List<ByteArray>, isHeartbeat: Boolean, heartbeatBridgeReceiveEpochSeconds: List<Long?> = emptyList())
Link copied to clipboard
abstract suspend fun removeDeviceFromStream(deviceId: UInt)
Link copied to clipboard
Link copied to clipboard
abstract suspend fun sendTelemetry(data: ByteArray)
Link copied to clipboard
abstract fun setOOBHandler(handleOOBResponse: (oobMessage: OOBWrapper?) -> Unit)
Link copied to clipboard
open fun setProxyUpdateCallback(callback: (UInt) -> Unit?)

Called by the Kotlin wrapper so the native implementation can notify when payloads are persisted (e.g. after processStreamResponse).

Link copied to clipboard
open fun setStreamEstablishedListener(listener: () -> Unit?)
Link copied to clipboard
abstract fun shutdown()
Link copied to clipboard
abstract fun streamMessagesFromServer(persistenceManager: PersistenceManager)