subscribeFor

fun subscribeFor(vararg eventTypes: String, listener: ChatEventListener<ChatEvent>): Disposable

Subscribes to the specific eventTypes of the client.

See also

for type constants


fun subscribeFor(lifecycleOwner: LifecycleOwner, vararg eventTypes: String, listener: ChatEventListener<ChatEvent>): Disposable
fun subscribeFor(lifecycleOwner: LifecycleOwner, vararg eventTypes: Class<out ChatEvent>, listener: ChatEventListener<ChatEvent>): Disposable

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.


fun subscribeFor(vararg eventTypes: Class<out ChatEvent>, listener: ChatEventListener<ChatEvent>): Disposable

Subscribes to the specific eventTypes of the client.