/**@class android.bluetooth.le.ScanSettings implements android.os.Parcelable @extends java.lang.Object Bluetooth LE scan settings are passed to {@link android.bluetooth.le.BluetoothLeScanner#startScan} to define the parameters for the scan. */ var ScanSettings = { /** A special Bluetooth LE scan mode. Applications using this scan mode will passively listen for other scan results without starting BLE scans themselves. */ SCAN_MODE_OPPORTUNISTIC : "-1", /** Perform Bluetooth LE scan in low power mode. This is the default scan mode as it consumes the least power. This mode is enforced if the scanning application is not in foreground. */ SCAN_MODE_LOW_POWER : "0", /** Perform Bluetooth LE scan in balanced power mode. Scan results are returned at a rate that provides a good trade-off between scan frequency and power consumption. */ SCAN_MODE_BALANCED : "1", /** Scan using highest duty cycle. It's recommended to only use this mode when the application is running in the foreground. */ SCAN_MODE_LOW_LATENCY : "2", /** Trigger a callback for every Bluetooth advertisement found that matches the filter criteria. If no filter is active, all advertisement packets are reported. */ CALLBACK_TYPE_ALL_MATCHES : "1", /** A result callback is only triggered for the first advertisement packet received that matches the filter criteria. */ CALLBACK_TYPE_FIRST_MATCH : "2", /** Receive a callback when advertisements are no longer received from a device that has been previously reported by a first match callback. */ CALLBACK_TYPE_MATCH_LOST : "4", /** Match one advertisement per filter */ MATCH_NUM_ONE_ADVERTISEMENT : "1", /** Match few advertisement per filter, depends on current capability and availibility of the resources in hw */ MATCH_NUM_FEW_ADVERTISEMENT : "2", /** Match as many advertisement per filter as hw could allow, depends on current capability and availibility of the resources in hw */ MATCH_NUM_MAX_ADVERTISEMENT : "3", /** In Aggressive mode, hw will determine a match sooner even with feeble signal strength and few number of sightings/match in a duration. */ MATCH_MODE_AGGRESSIVE : "1", /** For sticky mode, higher threshold of signal strength and sightings is required before reporting by hw */ MATCH_MODE_STICKY : "2", /** Request full scan results which contain the device, rssi, advertising data, scan response as well as the scan timestamp. @hide */ SCAN_RESULT_TYPE_FULL : "0", /** Request abbreviated scan results which contain the device, rssi and scan timestamp. <p> <b>Note:</b> It is possible for an application to get more scan results than it asked for, if there are multiple apps using this type. @hide */ SCAN_RESULT_TYPE_ABBREVIATED : "1", /** Use all supported PHYs for scanning. This will check the controller capabilities, and start the scan on 1Mbit and LE Coded PHYs if supported, or on the 1Mbit PHY only. */ PHY_LE_ALL_SUPPORTED : "255", /***/ CREATOR : "null", /** */ getScanMode : function( ) {}, /** */ getCallbackType : function( ) {}, /** */ getScanResultType : function( ) {}, /** @hide */ getMatchMode : function( ) {}, /** @hide */ getNumOfMatches : function( ) {}, /**Returns whether only legacy advertisements will be returned. Legacy advertisements include advertisements as specified by the Bluetooth core specification 4.2 and below. */ getLegacy : function( ) {}, /**Returns the physical layer used during a scan. */ getPhy : function( ) {}, /**Returns report delay timestamp based on the device clock. */ getReportDelayMillis : function( ) {}, /** */ writeToParcel : function( ) {}, /** */ describeContents : function( ) {}, };