DefaultScanner
A default implementation of BaseScanner
Parameters
the Context in which Bluetooth should run
the BluetoothLeScannerCompat to use for scanning
the BluetoothAdapter to use to access Bluetooth
the ScanSettings to apply to the scanner
the BaseScanner.Settings to configure this scanner
the CoroutineScope this scanner runs on
the CoroutineDispatcher to which scanning should be dispatched. It is recommended to make this a dispatcher that can handle high frequency of events
A default implementation of BaseScanner
Parameters
the ScanSettings to configure this scanner
the BaseScanner.Settings to configure this scanner
the CoroutineScope this scanner runs on
the CoroutineDispatcher to which scanning should be dispatched. It is recommended to make this a dispatcher that can handle high frequency of events
A default implementation of BaseScanner
A default implementation of BaseScanner
Parameters
the ScanSettings to configure this scanner
the BaseScanner.Settings to configure this scanner
the CoroutineScope this scanner runs on
the CoroutineDispatcher to which scanning should be dispatched. It is recommended to make this a dispatcher that can handle high frequency of events
A default implementation of BaseScanner backed by the Web Bluetooth API.
Web Bluetooth has no free-running scan, and navigator.bluetooth.requestDevice requires transient user activation. This scanner therefore renders an "Add Device" overlay for the duration of a scan (didStartScanning shows it, didStopScanning removes it); each press of its button opens the system picker and adds the chosen device, so a single scan can collect any number of devices.
Parameters
the BaseScanner.Settings to configure this scanner
the CoroutineScope this scanner runs on
the CoroutineDispatcher to which scanning should be dispatched
the advertisement-independent access allowlist applied to every picker invocation
the WebDevicePickerSettings configuring the "Add Device" overlay
Types
Builder for creating a DefaultScanner
Builder for creating a DefaultScanner
Builder for creating a DefaultScanner
Builder for creating a DefaultScanner
Settings to configure a DefaultScanner
Settings to configure a DefaultScanner
Properties
The Flow of all the ConnectionEvent detected by the scanner
The Flow of all the ConnectionEvent detected by the scanner
The Flow of all the ConnectionEvent detected by the scanner
The Flow of all the ConnectionEvent detected by the scanner
The Flow of all the ConnectionEvent detected by the scanner
The Flow of all the DeviceDiscovered detected by the scanner. These are grouped in a list until collected to account for high volumes of events
The Flow of all the DeviceDiscovered detected by the scanner. These are grouped in a list until collected to account for high volumes of events
The Flow of all the DeviceDiscovered detected by the scanner. These are grouped in a list until collected to account for high volumes of events
The Flow of all the DeviceDiscovered detected by the scanner. These are grouped in a list until collected to account for high volumes of events
The Flow of all the DeviceDiscovered detected by the scanner. These are grouped in a list until collected to account for high volumes of events
Indicates whether the system supports Bluetooth scanning
Indicates whether the system supports Bluetooth scanning
Indicates whether the system supports Bluetooth scanning
Indicates whether the system supports Bluetooth scanning
Indicates whether the system supports Bluetooth scanning
Functions
Checks whether the Bluetooth service is currently enabled
Checks whether the Bluetooth service is currently enabled
Checks whether the Bluetooth service is currently enabled
Checks whether the Bluetooth service is currently enabled
Checks whether the Bluetooth service is currently enabled
Attempts to request the user to enable Bluetooth
Attempts to request the user to enable Bluetooth
Attempts to request the user to enable Bluetooth
Attempts to request the user to enable Bluetooth
Attempts to request the user to enable Bluetooth
Retrieves the list of paired ConnectableDevice This will result in Event.PairedDevicesRetrieved on the events flow
Retrieves the list of paired ConnectableDevice This will result in Event.PairedDevicesRetrieved on the events flow
Retrieves the list of paired ConnectableDevice This will result in Event.PairedDevicesRetrieved on the events flow
Retrieves the list of paired ConnectableDevice This will result in Event.PairedDevicesRetrieved on the events flow
Retrieves the list of paired ConnectableDevice This will result in Event.PairedDevicesRetrieved on the events flow
Starts scanning for devices. This will result in Event.DeviceDiscovered or Event.FailedScanning
Starts scanning for devices. This will result in Event.DeviceDiscovered or Event.FailedScanning
Starts scanning for devices. This will result in Event.DeviceDiscovered or Event.FailedScanning
Starts scanning for devices. This will result in Event.DeviceDiscovered or Event.FailedScanning
Starts scanning for devices. This will result in Event.DeviceDiscovered or Event.FailedScanning
Starts scanning for changes to the Bluetooth service being enabled This will result in Event.BluetoothEnabled or Event.BluetoothDisabled on the events flow
Starts scanning for changes to the Bluetooth service being enabled This will result in Event.BluetoothEnabled or Event.BluetoothDisabled on the events flow
Starts scanning for changes to the Bluetooth service being enabled This will result in Event.BluetoothEnabled or Event.BluetoothDisabled on the events flow
Starts scanning for changes to the Bluetooth service being enabled This will result in Event.BluetoothEnabled or Event.BluetoothDisabled on the events flow
Starts scanning for changes to the Bluetooth service being enabled This will result in Event.BluetoothEnabled or Event.BluetoothDisabled on the events flow
Starts scanning for changes to permissions related to Bluetooth. This will result in Event.PermissionChanged on the events flow.
Starts scanning for changes to permissions related to Bluetooth. This will result in Event.PermissionChanged on the events flow.
Starts scanning for changes to permissions related to Bluetooth. This will result in Event.PermissionChanged on the events flow.
Starts scanning for changes to permissions related to Bluetooth. This will result in Event.PermissionChanged on the events flow.
Starts scanning for changes to permissions related to Bluetooth. This will result in Event.PermissionChanged on the events flow.
Stops scanning for changes to the Bluetooth service being enabled
Stops scanning for changes to the Bluetooth service being enabled
Stops scanning for changes to the Bluetooth service being enabled
Stops scanning for changes to the Bluetooth service being enabled
Stops scanning for changes to the Bluetooth service being enabled
Stops scanning for changes to permissions related to Bluetooth.
Stops scanning for changes to permissions related to Bluetooth.
Stops scanning for changes to permissions related to Bluetooth.
Stops scanning for changes to permissions related to Bluetooth.
Stops scanning for changes to permissions related to Bluetooth.
Stops scanning for devices
Stops scanning for devices
Stops scanning for devices
Stops scanning for devices
Stops scanning for devices