We are trying to control the state of the connection in android. I have
private var connection: AWSIotMqttClient? =null
And this type of connection does not allow a setCallback() to implement AWSIotMqttClientStatusCallback, which is the only way I have found to control the connection status. Any idea to control the connection status without download and storage aws sdk to import it in the project to override methods?