unsubscribe

open fun unsubscribe(@NonNull observer: Observer, @NonNull events: List<String>)

Unsubscribes an `observer` from a provided array of event types.

Parameters

observer

An `observer` that will be unsubscribed from a given events.

events

An array of event types to be unsubscribed from.

open fun unsubscribe(@NonNull observer: Observer)

Unsubscribes an `observer` from all events.

Parameters

observer

An `observer` that will be unsubscribed from all previously subscribed events.