onError

open override fun onError(type: AudioEndPointDetector.ErrorType, e: Exception?)

Called when occur error

Parameters

type

the type for error

e

the exception, only exist if type is ErrorType.ERROR_EXCEPTION