-
public class BleConnectBuilder
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enum
BleConnectBuilder.Level
public class
BleConnectBuilder.ExtInfo
-
Field Summary
Fields Modifier and Type Field Description private boolean
directConnect
private String
devId
private BleConnectBuilder.Level
level
private int
scanTimeout
private boolean
autoConnect
private BleConnectBuilder.ExtInfo
extInfo
-
Method Summary
Modifier and Type Method Description BleConnectBuilder
setDirectConnect(boolean directConnect)
Set whether to use cached connection String
getDevId()
get device's id @see setDevId(String devId) BleConnectBuilder
setDevId(String devId)
Set up the device you want to connect BleConnectBuilder.Level
getLevel()
get connect level. BleConnectBuilder
setLevel(BleConnectBuilder.Level level)
set connect level int
getScanTimeout()
BleConnectBuilder
setScanTimeout(int scanTimeout)
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). BleConnectBuilder.ExtInfo
getExtInfo()
BleConnectBuilder
setExtInfo(BleConnectBuilder.ExtInfo extInfo)
boolean
isDirectConnect()
get direct connect settings @see setDirectConnect() boolean
isAutoConnect()
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
-
-
-
-