-
public final class ChannelClientExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final <T extends ChatEvent> DisposablesubscribeFor(ChannelClient $self, Function1<T, Unit> listener)Subscribes to events of type T in the channel. final <T extends ChatEvent> DisposablesubscribeFor(ChannelClient $self, LifecycleOwner lifecycleOwner, Function1<T, Unit> listener)Subscribes to events of type T in the channel, in the lifecycle of lifecycleOwner. final DisposablesubscribeFor(ChannelClient $self, KClass<out ChatEvent> eventTypes, Function1<ChatEvent, Unit> listener)Subscribes to the specific eventTypes of the channel. final DisposablesubscribeFor(ChannelClient $self, LifecycleOwner lifecycleOwner, KClass<out ChatEvent> eventTypes, Function1<ChatEvent, Unit> listener)Subscribes to the specific eventTypes of the channel, in the lifecycle of lifecycleOwner. final <T extends ChatEvent> DisposablesubscribeForSingle(ChannelClient $self, Function1<T, Unit> listener)Subscribes for the next channel event of type T. -
-
Method Detail
-
subscribeFor
final <T extends ChatEvent> Disposable subscribeFor(ChannelClient $self, Function1<T, Unit> listener)
Subscribes to events of type T in the channel.
-
subscribeFor
final <T extends ChatEvent> Disposable subscribeFor(ChannelClient $self, LifecycleOwner lifecycleOwner, Function1<T, Unit> listener)
Subscribes to events of type T in the channel, in the lifecycle of lifecycleOwner.
Only receives events when the lifecycle is in a STARTED state, otherwise events are dropped.
-
subscribeFor
final Disposable subscribeFor(ChannelClient $self, KClass<out ChatEvent> eventTypes, Function1<ChatEvent, Unit> listener)
Subscribes to the specific eventTypes of the channel.
-
subscribeFor
final Disposable subscribeFor(ChannelClient $self, LifecycleOwner lifecycleOwner, KClass<out ChatEvent> eventTypes, Function1<ChatEvent, Unit> listener)
Subscribes to the specific eventTypes of the channel, in the lifecycle of lifecycleOwner.
Only receives events when the lifecycle is in a STARTED state, otherwise events are dropped.
-
subscribeForSingle
final <T extends ChatEvent> Disposable subscribeForSingle(ChannelClient $self, Function1<T, Unit> listener)
Subscribes for the next channel event of type T.
-
-
-
-