All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.pubnub.api.v2.callbacks.BaseStatusEmitter.kt Maven / Gradle / Ivy

package com.pubnub.api.v2.callbacks

import com.pubnub.api.callbacks.Listener

interface BaseStatusEmitter {
    /**
     * Add a listener.
     *
     * @param listener The listener to be added.
     */
    fun addListener(listener: T)

    /**
     * Remove a listener.
     *
     * @param listener The listener to be removed, previously added with [addListener].
     */
    fun removeListener(listener: Listener)

    /**
     * Removes all listeners.
     */
    fun removeAllListeners()
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy