You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently the start() must invoke with a listener parameter, and the listener parameter will override audioDeviceChangeListener which means it cannot use multiple listeners.
Is it possible to provide a start() without any parameters like this:
funstart(listener:AudioDeviceChangeListener) {
audioDeviceChangeListener = listener
start()
}
funstart() {
when (state) {
STOPPED-> {
bluetoothHeadsetManager?.start(bluetoothDeviceConnectionListener)
wiredHeadsetReceiver.start(wiredDeviceConnectionListener)
enumerateDevices()
state =STARTED
}
else-> {
logger.d(TAG, "Redundant start() invocation while already in the started or activated state")
}
}
}
or provider some addListener() API to manager a list of audioDeviceChangeListener.
The text was updated successfully, but these errors were encountered:
Thanks for making this convenient library!
Currently the
start()
must invoke with a listener parameter, and the listener parameter will overrideaudioDeviceChangeListener
which means it cannot use multiple listeners.Is it possible to provide a
start()
without any parameters like this:or provider some
addListener()
API to manager a list ofaudioDeviceChangeListener
.The text was updated successfully, but these errors were encountered: