public class LocationCollectionClient
extends java.lang.Object
implements android.content.SharedPreferences.OnSharedPreferenceChangeListener
Location collector can be disabled at any point of time or uninstalled completely in order to release system resources.
| Modifier and Type | Field and Description |
|---|---|
static int |
DEFAULT_SESSION_ROTATION_INTERVAL_HOURS |
| Modifier and Type | Method and Description |
|---|---|
static LocationCollectionClient |
install(android.content.Context context,
long defaultInterval)
Install location collection client
|
void |
onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences,
java.lang.String key) |
public static final int DEFAULT_SESSION_ROTATION_INTERVAL_HOURS
public static LocationCollectionClient install(@NonNull android.content.Context context, long defaultInterval)
context - non-null reference to context object.defaultInterval - default session rotation interval.public void onSharedPreferenceChanged(android.content.SharedPreferences sharedPreferences,
java.lang.String key)
onSharedPreferenceChanged in interface android.content.SharedPreferences.OnSharedPreferenceChangeListener