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