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

jvmMain.com.pubnub.api.v2.callbacks.StatusEmitter.kt Maven / Gradle / Ivy

Go to download

PubNub is a cross-platform client-to-client (1:1 and 1:many) push service in the cloud, capable of broadcasting real-time messages to millions of web and mobile clients simultaneously, in less than a quarter second!

There is a newer version: 10.3.2
Show newest version
package com.pubnub.api.v2.callbacks

import com.pubnub.api.callbacks.Listener

/**
 * Interface implemented by objects that manage the subscription connection to the PubNub network and can be monitored
 * for connection state changes.
 */
interface StatusEmitter {
    /**
     * Add a listener.
     *
     * @param listener The listener to be added.
     */
    fun addListener(listener: StatusListener)

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

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




© 2015 - 2025 Weber Informatics LLC | Privacy Policy