-
public final class ChannelClientExtensionsKt
-
-
Method Summary
Modifier and Type Method Description final static <T extends ChatEvent> DisposablesubscribeFor(ChannelClient $self, ChatEventListener<T> listener)Subscribes to events of type T in the channel. final static <T extends ChatEvent> DisposablesubscribeFor(ChannelClient $self, LifecycleOwner lifecycleOwner, ChatEventListener<T> listener)Subscribes to events of type T in the channel, in the lifecycle of lifecycleOwner. final static DisposablesubscribeFor(ChannelClient $self, KClass<out ChatEvent> eventTypes, ChatEventListener<ChatEvent> listener)Subscribes to the specific eventTypes of the channel. final static DisposablesubscribeFor(ChannelClient $self, LifecycleOwner lifecycleOwner, KClass<out ChatEvent> eventTypes, ChatEventListener<ChatEvent> listener)Subscribes to the specific eventTypes of the channel, in the lifecycle of lifecycleOwner. final static <T extends ChatEvent> DisposablesubscribeForSingle(ChannelClient $self, ChatEventListener<T> listener)Subscribes for the next channel event of type T. -
-
Method Detail
-
subscribeFor
final static <T extends ChatEvent> Disposable subscribeFor(ChannelClient $self, ChatEventListener<T> listener)
Subscribes to events of type T in the channel.
-
subscribeFor
final static <T extends ChatEvent> Disposable subscribeFor(ChannelClient $self, LifecycleOwner lifecycleOwner, ChatEventListener<T> 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 static Disposable subscribeFor(ChannelClient $self, KClass<out ChatEvent> eventTypes, ChatEventListener<ChatEvent> listener)
Subscribes to the specific eventTypes of the channel.
-
subscribeFor
final static Disposable subscribeFor(ChannelClient $self, LifecycleOwner lifecycleOwner, KClass<out ChatEvent> eventTypes, ChatEventListener<ChatEvent> 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 static <T extends ChatEvent> Disposable subscribeForSingle(ChannelClient $self, ChatEventListener<T> listener)
Subscribes for the next channel event of type T.
-
-
-
-