toggle menu
KSLCore
R1.1.3
jvm
switch theme
search in API
KSLCore
/
ksl.utilities.observers
/
Emitter
Emitter
class
Emitter
<
TType
>
https://in-kotlin.com/design-patterns/observer/
Members
Constructors
Emitter
Link copied to clipboard
constructor
(
)
Types
Connection
Link copied to clipboard
class
Connection
Properties
emissions
On
Link copied to clipboard
var
emissionsOn
:
Boolean
Functions
attach
Link copied to clipboard
fun
attach
(
callback
:
(
newValue
:
TType
)
->
Unit
)
:
Emitter.Connection
detach
Link copied to clipboard
fun
detach
(
connection
:
Emitter.Connection
)
emit
Link copied to clipboard
fun
emit
(
newValue
:
TType
)