topl-service / io.matthewnelson.topl_service / TorServiceController / Builder / setEventBroadcaster
setEventBroadcaster¶
fun setEventBroadcaster(eventBroadcaster:
TorServiceEventBroadcaster
): Builder
(source)
Get broadcasts piped to your Application to do with them what you desire. What you send this will live at Companion.appEventBroadcaster for the remainder of your application’s lifecycle to refer to elsewhere in your App.
NOTE: You will, ofc, have to cast Companion.appEventBroadcaster as whatever your class actually is.