public class WiFiBackendHelper extends AbstractBackendHelper
| Modifier and Type | Class and Description |
|---|---|
static interface |
WiFiBackendHelper.Listener
Interface to listen for Wi-Fi scan results.
|
static class |
WiFiBackendHelper.WiFi
Represents a generic Wi-Fi scan result.
|
AbstractBackendHelper.Statecontext, currentDataUsed, state, TAG| Constructor and Description |
|---|
WiFiBackendHelper(android.content.Context context,
WiFiBackendHelper.Listener listener)
Create a new instance of
WiFiBackendHelper. |
| Modifier and Type | Method and Description |
|---|---|
java.lang.String[] |
getRequiredPermissions() |
java.util.Set<WiFiBackendHelper.WiFi> |
getWiFis() |
void |
onClose()
Call this in
AbstractBackendService.onClose(). |
void |
onOpen()
Call this in
AbstractBackendService.onOpen(). |
void |
onUpdate()
Call this in
LocationBackendService.update(). |
void |
setIgnoreNomap(boolean ignoreNomap)
Sets whether to ignore the "_nomap" flag on Wi-Fi SSIDs or not.
|
public WiFiBackendHelper(android.content.Context context,
WiFiBackendHelper.Listener listener)
WiFiBackendHelper. Call this in
Service.onCreate().java.lang.IllegalArgumentException - if either context or listener is null.public void setIgnoreNomap(boolean ignoreNomap)
setIgnoreNomap(false).
Default is true.public void onOpen()
AbstractBackendService.onOpen().onOpen in class AbstractBackendHelperpublic void onClose()
AbstractBackendService.onClose().onClose in class AbstractBackendHelperpublic void onUpdate()
LocationBackendService.update().onUpdate in class AbstractBackendHelperpublic java.lang.String[] getRequiredPermissions()
getRequiredPermissions in class AbstractBackendHelperpublic java.util.Set<WiFiBackendHelper.WiFi> getWiFis()