-
public class BleConnectBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumBleConnectBuilder.Levelpublic classBleConnectBuilder.ExtInfo
-
Field Summary
Fields Modifier and Type Field Description private booleandirectConnectprivate StringdevIdprivate BleConnectBuilder.Levellevelprivate intscanTimeoutprivate booleanautoConnectprivate BleConnectBuilder.ExtInfoextInfo
-
Method Summary
Modifier and Type Method Description BleConnectBuildersetDirectConnect(boolean directConnect)Set whether to use cached connection StringgetDevId()get device's id @see setDevId(String devId) BleConnectBuildersetDevId(String devId)Set up the device you want to connect BleConnectBuilder.LevelgetLevel()get connect level. BleConnectBuildersetLevel(BleConnectBuilder.Level level)set connect level intgetScanTimeout()BleConnectBuildersetScanTimeout(int scanTimeout)BleConnectBuildersetAutoConnect(boolean autoConnect)Whether to directly connect to the remote device (false) or toautomatically connect as soon as the remote device becomes available (true). BleConnectBuilder.ExtInfogetExtInfo()BleConnectBuildersetExtInfo(BleConnectBuilder.ExtInfo extInfo)booleanisDirectConnect()get direct connect settings @see setDirectConnect() booleanisAutoConnect()get autoConnect setting -
-
Method Detail
-
setDirectConnect
BleConnectBuilder setDirectConnect(boolean directConnect)
Set whether to use cached connection
- Parameters:
directConnect- true:use cache, false : not use cache
-
getDevId
String getDevId()
get device's id @see setDevId(String devId)
-
setDevId
BleConnectBuilder setDevId(String devId)
Set up the device you want to connect
- Parameters:
devId- device's id
-
getLevel
BleConnectBuilder.Level getLevel()
get connect level. @see setLevel(level)
-
setLevel
BleConnectBuilder setLevel(BleConnectBuilder.Level level)
set connect level
- Parameters:
level- Level
-
getScanTimeout
int getScanTimeout()
-
setScanTimeout
BleConnectBuilder setScanTimeout(int scanTimeout)
-
setAutoConnect
@Deprecated() BleConnectBuilder setAutoConnect(boolean autoConnect)
Whether to directly connect to the remote device (false) or toautomatically connect as soon as the remote device becomes available (true).
-
getExtInfo
BleConnectBuilder.ExtInfo getExtInfo()
-
setExtInfo
BleConnectBuilder setExtInfo(BleConnectBuilder.ExtInfo extInfo)
-
isDirectConnect
boolean isDirectConnect()
get direct connect settings @see setDirectConnect()
-
isAutoConnect
boolean isAutoConnect()
get autoConnect setting
-
-
-
-