public class EsptouchTask extends Object implements IEsptouchTask
| 限定符和类型 | 字段和说明 |
|---|---|
__EsptouchTask |
_mEsptouchTask |
| 构造器和说明 |
|---|
EsptouchTask(String apSsid,
String apBssid,
String apPassword,
boolean isSsidHidden,
android.content.Context context)
Constructor of EsptouchTask
|
EsptouchTask(String apSsid,
String apBssid,
String apPassword,
boolean isSsidHidden,
int timeoutMillisecond,
android.content.Context context)
Constructor of EsptouchTask
|
| 限定符和类型 | 方法和说明 |
|---|---|
IEsptouchResult |
executeForResult()
Note: !!!
|
List<IEsptouchResult> |
executeForResults(int expectTaskResultCount)
Note: !!!
|
void |
interrupt()
Interrupt the Esptouch Task when User tap back or close the Application.
|
boolean |
isCancelled()
check whether the task is cancelled by user
|
void |
setEsptouchListener(IEsptouchListener esptouchListener)
set the esptouch listener, when one device is connected to the Ap, it will be called back
|
public __EsptouchTask _mEsptouchTask
public EsptouchTask(String apSsid, String apBssid, String apPassword, boolean isSsidHidden, android.content.Context context)
apSsid - the Ap's ssidapBssid - the Ap's bssidapPassword - the Ap's passwordisSsidHidden - whether the Ap's ssid is hiddencontext - the Context of the Applicationpublic EsptouchTask(String apSsid, String apBssid, String apPassword, boolean isSsidHidden, int timeoutMillisecond, android.content.Context context)
apSsid - the Ap's ssidapBssid - the Ap's bssidapPassword - the Ap's passwordisSsidHidden - whether the Ap's ssid is hiddentimeoutMillisecond - (it should be >= 15000+6000) millisecond of total timeoutcontext - the Context of the Applicationpublic void interrupt()
IEsptouchTaskinterrupt 在接口中 IEsptouchTaskpublic IEsptouchResult executeForResult() throws RuntimeException
IEsptouchTaskexecuteForResult 在接口中 IEsptouchTaskRuntimeExceptionpublic boolean isCancelled()
IEsptouchTaskisCancelled 在接口中 IEsptouchTaskpublic List<IEsptouchResult> executeForResults(int expectTaskResultCount) throws RuntimeException
IEsptouchTaskexecuteForResults 在接口中 IEsptouchTaskexpectTaskResultCount - the expect result count(if expectTaskResultCount <= 0,
expectTaskResultCount = Integer.MAX_VALUE)RuntimeExceptionpublic void setEsptouchListener(IEsptouchListener esptouchListener)
IEsptouchTasksetEsptouchListener 在接口中 IEsptouchTaskesptouchListener - when one device is connected to the Ap, it will be called back