Back to project page LeBlue.
The source code is released under:
Apache License
If you think the Android project LeBlue listed in this page is inappropriate, such as containing malicious code/tools or violating the copyright, please email info at java2s dot com, thanks.
package houtbecke.rs.le; /*from ww w. ja v a 2s .co m*/ import java.util.UUID; public interface LeDevice { /** * Add a listener for getting updates on LE devices * * @param listener the listener to add */ void addListener(LeDeviceListener listener); /** * Remove a listener for getting updates on LE devices * * @param listener the listener to remove */ void removeListener(LeDeviceListener listener); /** * Run test and check if this device has BT and BLE hardware available * * @return true if BLE is available */ boolean checkBleHardwareAvailable(); /** * Test if Bluetooth is enabled * * @return true if Bluetooth is on */ boolean isBtEnabled(); /** * Scan for Bluetooth LE devices nearby */ void startScanning(); /** * Scan for Bluetooth devices of certain types * * @param uuids the uuids of device types */ void startScanning(UUID... uuids); /** * Stop scanning for Bluetooth LE devices nearby */ void stopScanning(); }