ExtensionLink

One peer as the extensions see it: a connected client on the Android phone, the Android phone on a client. The host app implements it over its own connection; the registry decides what may be sent.

Properties

Link copied to clipboard
open val dry: Boolean

A test transport: an extension must not touch anything real for it (it may answer).

Link copied to clipboard
open val inCall: Boolean

Call audio runs on this link now: extension messages are kept small (protocol §7.3).

Link copied to clipboard
abstract val peerKind: String

"iphone" or "android" for a client, "phone" for the Android phone.

Link copied to clipboard
abstract val peerName: String

The peer's name as the user knows it ("iPhone", the client's device name, the Android phone's name).

Link copied to clipboard
abstract val transport: String

"l2cap", "gatt" or "memory" (tests and on-device test clients).

Functions

Link copied to clipboard
abstract fun send(m: Message): Boolean

Sends one control message as it is; false when it could not be sent.