public class DeviceDataCollector extends DataCollector
| Modifier and Type | Field and Description |
|---|---|
protected static java.lang.String |
LOCAL_STORAGE_DEVICE_ID_KEY |
protected static java.lang.String |
LOCAL_STORAGE_PATH |
| Constructor and Description |
|---|
DeviceDataCollector() |
| Modifier and Type | Method and Description |
|---|---|
java.util.Map<java.lang.String,java.lang.String> |
collect(android.content.Context context)
Actual logic to collect a category of data from device.
|
protected java.lang.String |
getCognitoDeviceAgent(android.content.Context context) |
protected java.lang.String |
getLanguage() |
protected java.lang.String |
getThirdPartyDeviceAgent() |
protected java.util.TimeZone |
getTimezone()
Method is protected to allow it to be over-riden for unit testing
|
protected static final java.lang.String LOCAL_STORAGE_PATH
protected static final java.lang.String LOCAL_STORAGE_DEVICE_ID_KEY
public java.util.Map<java.lang.String,java.lang.String> collect(android.content.Context context)
collect in class DataCollectorcontext - android application context.protected java.lang.String getCognitoDeviceAgent(android.content.Context context)
protected java.lang.String getThirdPartyDeviceAgent()
protected java.lang.String getLanguage()
protected java.util.TimeZone getTimezone()