public class BluetoothSocketConnector extends Object
Modifier and Type | Field and Description |
---|---|
String |
Device
Gets or sets the target BTDevice to connect to.
|
Constructor and Description |
---|
BluetoothSocketConnector(Context context)
Initializes a new instance of the BluetoothSocketConnector.
|
Modifier and Type | Method and Description |
---|---|
void |
addListener(IConfigEventListener listener)
Add 1860 event interface
|
boolean |
Connect()
Connects to the given BTDevice.
|
void |
Disconnect()
Disconnects from the given BTDevice.
|
List<String> |
GetPairedDevice()
Gets a list of paired 1800 Series devices.
|
boolean |
IsBlueToothTurnOn()
Gets device BlueTooth status
|
boolean |
IsConnected()
Gets the connection status.
|
void |
removeListener(IConfigEventListener listener)
Remove 1860 event interface
|
public String Device
public BluetoothSocketConnector(Context context)
public boolean Connect()
public void Disconnect()
public boolean IsConnected()
public boolean IsBlueToothTurnOn()
public void addListener(IConfigEventListener listener)
public void removeListener(IConfigEventListener listener)