public class FusedLocationFetcherBackgroundBalanced
extends java.lang.Object
| Constructor and Description |
|---|
FusedLocationFetcherBackgroundBalanced(android.content.Context context,
long requestInterval)
Constructor for initializing LocationFetcher class' object
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
buildGoogleApiClient(android.content.Context context) |
void |
connect() |
protected void |
createLocationRequest(long interval) |
void |
destroy() |
boolean |
isConnected() |
boolean |
isLocationEnabled(android.content.Context context)
Checks if com.example.library.tookan.mylibrary.location fetching is enabled in device or not
|
void |
onConnected(android.os.Bundle connectionHint) |
void |
onConnectionFailed(ConnectionResult result) |
void |
onConnectionSuspended(int i) |
protected void |
startLocationUpdates(long interval) |
public FusedLocationFetcherBackgroundBalanced(android.content.Context context,
long requestInterval)
context - application contextpublic boolean isConnected()
public boolean isLocationEnabled(android.content.Context context)
context - application contextpublic void connect()
public void destroy()
protected void createLocationRequest(long interval)
protected void buildGoogleApiClient(android.content.Context context)
protected void startLocationUpdates(long interval)
public void onConnected(android.os.Bundle connectionHint)
public void onConnectionSuspended(int i)
public void onConnectionFailed(ConnectionResult result)