onError

abstract fun onError(type: AudioEndPointDetector.ErrorType, e: Exception? = null)

Called when occur error

Parameters

type

the type for error

e

the exception, only exist if type is ErrorType.ERROR_EXCEPTION