BleScannerSettings
data class BleScannerSettings(val scanMode: BleScanMode = BleScanMode.SCAN_MODE_LOW_POWER, val reportDelay: Long = 0, val includeStoredBondedDevices: Boolean = true, val callbackType: BleScannerCallbackType = BleScannerCallbackType.CALLBACK_TYPE_ALL_MATCHES, val numOfMatches: BleNumOfMatches? = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
BleNumOfMatches.MATCH_NUM_MAX_ADVERTISEMENT
} else {
null
}, val matchMode: BleScannerMatchMode? = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
BleScannerMatchMode.MATCH_MODE_AGGRESSIVE
} else {
null
}, val legacy: Boolean = false, val phy: BleScannerPhy? = null)
Data class that offers configuration parameters for a scanner.
Constructors
Link copied to clipboard
constructor(scanMode: BleScanMode = BleScanMode.SCAN_MODE_LOW_POWER, reportDelay: Long = 0, includeStoredBondedDevices: Boolean = true, callbackType: BleScannerCallbackType = BleScannerCallbackType.CALLBACK_TYPE_ALL_MATCHES, numOfMatches: BleNumOfMatches? = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
BleNumOfMatches.MATCH_NUM_MAX_ADVERTISEMENT
} else {
null
}, matchMode: BleScannerMatchMode? = if (Build.VERSION.SDK_INT >= Build.VERSION_CODES.M) {
BleScannerMatchMode.MATCH_MODE_AGGRESSIVE
} else {
null
}, legacy: Boolean = false, phy: BleScannerPhy? = null)
Properties
Link copied to clipboard
Set callback type (BleScannerCallbackType) for Bluetooth LE scan.
Link copied to clipboard
Flag indicating weather to include stored bonded devices in scan result.
Link copied to clipboard
Set whether only legacy advertisements should be returned in scan results.
Link copied to clipboard
Set match mode (BleScannerMatchMode) for Bluetooth LE scan filters hardware match.
Link copied to clipboard
Set the number of matches (BleNumOfMatches) for Bluetooth LE scan filters hardware match.
Link copied to clipboard
Set the Physical Layer (BleScannerPhy) to use during this scan.
Link copied to clipboard
Set report delay timestamp for Bluetooth LE scan.
Link copied to clipboard
Set scan mode (BleScanMode) for Bluetooth LE scan.