public class CellBackendHelper extends AbstractBackendHelper
| Modifier and Type | Class and Description |
|---|---|
static class |
CellBackendHelper.Cell |
static interface |
CellBackendHelper.Listener |
AbstractBackendHelper.State| Modifier and Type | Field and Description |
|---|---|
static int |
FALLBACK_UPDATE_INTERVAL |
static int |
MIN_UPDATE_INTERVAL |
context, currentDataUsed, state, TAG| Constructor and Description |
|---|
CellBackendHelper(android.content.Context context,
CellBackendHelper.Listener listener)
Create a new instance of
CellBackendHelper. |
| Modifier and Type | Method and Description |
|---|---|
java.util.Set<CellBackendHelper.Cell> |
getCells() |
java.lang.String[] |
getRequiredPermissions() |
void |
onClose()
Call this in
AbstractBackendService.onClose(). |
void |
onOpen()
Call this in
AbstractBackendService.onOpen(). |
void |
onUpdate()
Call this in
LocationBackendService.update(). |
public static final int MIN_UPDATE_INTERVAL
public static final int FALLBACK_UPDATE_INTERVAL
public CellBackendHelper(android.content.Context context,
CellBackendHelper.Listener listener)
CellBackendHelper. Call this in
Service.onCreate().java.lang.IllegalArgumentException - if either context or listener is null.java.lang.IllegalStateException - if android version is below 4.2public java.util.Set<CellBackendHelper.Cell> getCells()
public void onOpen()
AbstractBackendService.onOpen().onOpen in class AbstractBackendHelperpublic void onClose()
AbstractBackendService.onClose().onClose in class AbstractBackendHelperpublic void onUpdate()
AbstractBackendHelperLocationBackendService.update().onUpdate in class AbstractBackendHelperpublic java.lang.String[] getRequiredPermissions()
getRequiredPermissions in class AbstractBackendHelper