unsubscribe

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

Unsubscribes an Observer from a provided list of event types.

Parameters

observer

an Observer

events

an array of event types to be unsubscribed from.

fun unsubscribe(observer: Observer)

Unsubscribes an Observer from all events.

Parameters

observer

an Observer