public abstract class Tracker
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
EXTRA_LOGIN_ERROR |
static java.lang.String |
EXTRA_LOGIN_MODEL |
static java.lang.String |
EXTRA_LOGIN_STATUS |
Constructor and Description |
---|
Tracker()
The constructor.
|
Modifier and Type | Method and Description |
---|---|
protected abstract java.lang.String |
getActionStateChanged() |
protected boolean |
isLocal()
Specified whether the broadcasts are local.
|
boolean |
isPaused()
Gets whether the tracker is paused
|
boolean |
isTracking()
Gets whether the tracker is tracking the state
|
protected abstract void |
onReceive(android.content.Intent intent)
Called when the broadcast is received.
|
void |
pauseTracking()
Pauses tracking the state
The state changes will be enqueued and then flushed out after the next call to startTracking.
|
void |
startTracking()
Starts tracking the state
|
void |
stopTracking()
Stops tracking the state
|
public static final java.lang.String EXTRA_LOGIN_ERROR
public static final java.lang.String EXTRA_LOGIN_MODEL
public static final java.lang.String EXTRA_LOGIN_STATUS
public void startTracking()
public void stopTracking()
public void pauseTracking()
public boolean isPaused()
public boolean isTracking()
protected abstract java.lang.String getActionStateChanged()
protected boolean isLocal()
protected abstract void onReceive(android.content.Intent intent)
intent
- the intent that was broadcast