Class BatchDataCollectionConfig

java.lang.Object
com.batch.android.BatchDataCollectionConfig

public class BatchDataCollectionConfig extends Object
Batch Automatic Data Collection related configuration.
  • Constructor Details

    • BatchDataCollectionConfig

      public BatchDataCollectionConfig()
  • Method Details

    • setGeoIPEnabled

      public BatchDataCollectionConfig setGeoIPEnabled(boolean geoIPEnabled)
      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

      public BatchDataCollectionConfig setDeviceBrandEnabled(boolean deviceBrandEnabled)
      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

      public BatchDataCollectionConfig setDeviceModelEnabled(boolean deviceModelEnabled)
      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

      public Boolean 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

      public Boolean 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

      public Boolean 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

      public String toString()
      To String method
      Overrides:
      toString in class Object
      Returns:
      A string representation of the data collection config.