publish
Convenience method that can be used to publish an AvailabilityChangeEvent to the given application context.
Parameters
<S>
the availability state type
context
the context used to publish the event
state
the changed availability state
open fun <S : AvailabilityState?> publish(publisher: ApplicationEventPublisher, source: Any, state: S)
Convenience method that can be used to publish an AvailabilityChangeEvent to the given application context.
Parameters
<S>
the availability state type
publisher
the publisher used to publish the event
source
the source of the event
state
the changed availability state