-
public class LeScanSetting.Builder
-
-
Field Summary
Fields Modifier and Type Field Description private long
timeout
private boolean
repeatFilter
private boolean
needMatchUUID
-
Method Summary
Modifier and Type Method Description LeScanSetting.Builder
setTimeout(long timeout)
set scan timeout. LeScanSetting.Builder
setRepeatFilter(boolean filter)
Will affect the way of scanning device callbacks. LeScanSetting.Builder
setNeedMatchUUID(boolean needMatchUUID)
LeScanSetting.Builder
setUUID(String uuid)
LeScanSetting.Builder
addScanType(ScanType type)
can add multiple scan type LeScanSetting
build()
-
-
Method Detail
-
setTimeout
LeScanSetting.Builder setTimeout(long timeout)
set scan timeout. If not set, the default value is 4000ms
- Parameters:
timeout
- Unit ms.
-
setRepeatFilter
LeScanSetting.Builder setRepeatFilter(boolean filter)
Will affect the way of scanning device callbacks. Default true
- Parameters:
filter
- true:The same device will be filtered and only returned once,false: Will continue to return without filtering
-
setNeedMatchUUID
LeScanSetting.Builder setNeedMatchUUID(boolean needMatchUUID)
-
setUUID
LeScanSetting.Builder setUUID(String uuid)
-
addScanType
LeScanSetting.Builder addScanType(ScanType type)
can add multiple scan type
- Parameters:
type
- ScanType
-
build
LeScanSetting build()
-
-
-
-