Kotlin Wrappers API Reference
Toggle table of contents
web
Target filter
web
Switch theme
Search in API
Skip to content
Kotlin Wrappers API Reference
kotlin-tauri-apps-api
/
tauri.apps.api
/
Channel
Channel
external
class
Channel
<
T
>
(
source
)
Members
Constructors
Channel
Link copied to clipboard
constructor
(
onmessage
:
(
response
:
T
)
->
Unit
=
definedExternally
)
Properties
id
Link copied to clipboard
var
id
:
Double
The callback id returned from {@linkcode transformCallback}
onmessage
Link copied to clipboard
var
onmessage
:
(
response
:
T
)
->
Unit
Functions
to
JSON
Link copied to clipboard
fun
toJSON
(
)
:
String