widgetextension Get availableInputs

I want to get the availableInputs list in widgetextension, but it always returns only the phone's microphone. I have confirmed that I have connected additional Bluetooth devices. Why is this? If I want to get the information I want, how should I do it?

widgetextension Get availableInputs
 
 
Q