Bluetooth device pick
A decision block that lets the user choose a nearby Bluetooth device.
The fiber will pause until the user has chosen a device, cancelled the dialog
or the timeout expired.
Input arguments
- Device type — type of device, default is any.
- Timeout — time until the notification/dialog is automatically canceled, may be inaccurate as it’s affected power save features such as “doze”, default is no timeout.
- Notification channel — UUID of notification channel used for shown notification, default is the flow default or Flow.
- Show window — whether to show the dialog window directly without having to tap the notification. Requires the “appear atop of other apps or parts of the screen” privilege on Android 10+.
Output variables
- Picked device address — variable to assign the address of the picked device.
- Picked device name — variable to assign the name of the picked device.
- Picked device type — variable to assign the type of the picked device.