chirpsdk / io.chirp.chirpsdk / ChirpSDK / onStateChanged

onStateChanged

fun onStateChanged(onStateChangedCallback: (oldState: ChirpSDKState, newState: ChirpSDKState) -> Unit): Unit

Set onStateChanged Unit callback. Will be triggered when the SDK state will change.

Parameters

onStateChangedCallback - Unit callback with oldState and newState arguments