public class ScanAndPairManager extends EMDKBase
| Modifier and Type | Class and Description | 
|---|---|
static interface  | 
ScanAndPairManager.StatusListener
An interface for notifying client applications to notify scan and pair or unpair events. 
 | 
| Modifier and Type | Field and Description | 
|---|---|
ScanAndPairConfig | 
config
The ScanAndPairManager.config provides a way to configure the settings to use it in scanAndPair() or scanAnUnpair() methods. 
 | 
| Modifier and Type | Method and Description | 
|---|---|
void | 
addStatusListener(ScanAndPairManager.StatusListener listener)
The client can register to get status notification via callbacks. 
 | 
StatusData | 
getStatus()
This method provides an option to get the current or recent status of scanAndPair or scanAndUnpair calls 
 | 
boolean | 
isPreviousCommandPending()
This method provides information if any of the previous request is pending. 
 | 
void | 
removeStatusListener(ScanAndPairManager.StatusListener listener)
The client can un-register to get status notification via callbacks. 
 | 
ScanAndPairResults | 
scanAndPair(java.lang.String pin)
This is an asynchronous method. 
 | 
ScanAndPairResults | 
scanAndUnpair()
This is an asynchronous method. 
 | 
public ScanAndPairConfig config
public boolean isPreviousCommandPending()
public ScanAndPairResults scanAndPair(java.lang.String pin)
pin - Pin required to pair with the Bluetooth device.public ScanAndPairResults scanAndUnpair()
public StatusData getStatus()
public void addStatusListener(ScanAndPairManager.StatusListener listener) throws ScanAndPairException
listener - ScanAndPairExceptionpublic void removeStatusListener(ScanAndPairManager.StatusListener listener) throws ScanAndPairException
listener - ScanAndPairException