subscribe

open override fun subscribe(observer: Observer, events: List<String>)

Subscribes an Observer to a provided list of event types. Observable will hold a strong reference to an \sa Observer instance, therefore, in order to stop receiving notifications, caller must call unsubscribe with an \sa Observer instance used for an initial subscription.

Parameters

observer

an \sa Observer

events

an array of event types to be subscribed to.