chirpsdk / io.chirp.chirpsdk.interfaces / ChirpEventListener

ChirpEventListener

interface ChirpEventListener

Used for receiving notifications from the ChirpSDK.

Since
3.2.0

Functions

onReceived

abstract fun onReceived(payload: ByteArray?, channel: Int): Unit

This method is called when a payload is received, when the sdk is listening.

onReceiving

abstract fun onReceiving(channel: Int): Unit

This method is called when payload is first detected, and before the data has finished playing.

onSending

abstract fun onSending(payload: ByteArray, channel: Int): Unit

This method is called when a payload is started to be played, and before the Chirp has finished playing.

onSent

abstract fun onSent(payload: ByteArray, channel: Int): Unit

This method is called when payload is sent, when the ChirpSDK is sending.

onStateChanged

abstract fun onStateChanged(oldState: Int, newState: Int): Unit

This method is called when the sdk state is changed.

onSystemVolumeChanged

abstract fun onSystemVolumeChanged(oldVolume: Float, currentVolume: Float): Unit

This method is called when system volume is changed.