Package com.batch.android
Class BatchDataCollectionConfig
java.lang.Object
com.batch.android.BatchDataCollectionConfig
Batch Automatic Data Collection related configuration.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Editor interface to edit the BatchDataCollectionConfig -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGet whether the device brand collect is enabled (null mean unchanged from last modification or default value : false).Get whether the device model collect is enabled (null mean unchanged from last modification or default value : false).Get whether the geoip is enabled to resolve the user's location/region on server side.setDeviceBrandEnabled
(boolean deviceBrandEnabled) Set whether Batch should send the device brand information.setDeviceModelEnabled
(boolean deviceModelEnabled) Set whether Batch should send the device model information.setGeoIPEnabled
(boolean geoIPEnabled) Set whether Batch can resolve the user's region/location from the ip address.toString()
To String method
-
Constructor Details
-
BatchDataCollectionConfig
public BatchDataCollectionConfig()
-
-
Method Details
-
setGeoIPEnabled
Set whether Batch can resolve the user's region/location from the ip address.- Parameters:
geoIPEnabled
- Whether Batch can resolve the geoip.- Returns:
- This BatchDataCollectionConfig instance for method chaining
-
setDeviceBrandEnabled
Set whether Batch should send the device brand information.- Parameters:
deviceBrandEnabled
- Whether Batch can collect the device brand.- Returns:
- This BatchDataCollectionConfig instance for method chaining
-
setDeviceModelEnabled
Set whether Batch should send the device model information.- Parameters:
deviceModelEnabled
- Whether Batch can collect the device model.- Returns:
- This BatchDataCollectionConfig instance for method chaining
-
isGeoIpEnabled
Get whether the geoip is enabled to resolve the user's location/region on server side.- Returns:
- whether the geoip is enabled to resolve the user's location/region.
-
isDeviceBrandEnabled
Get whether the device brand collect is enabled (null mean unchanged from last modification or default value : false).- Returns:
- Whether the device brand collect is enabled t.
-
isDeviceModelEnabled
Get whether the device model collect is enabled (null mean unchanged from last modification or default value : false).- Returns:
- Whether the device model collect is enabled.
-
toString
To String method
-