Class AntiFraudConfig.Builder

java.lang.Object
com.my.tracker.config.AntiFraudConfig.Builder
Enclosing class:
AntiFraudConfig

public static final class AntiFraudConfig.Builder extends Object
Builder-class for AntiFraudConfig
  • Method Details

    • useLightSensor

      public AntiFraudConfig.Builder useLightSensor(boolean useLightSensor)
      Enable or disable light sensor tracking
      Parameters:
      useLightSensor - If true, the tracker handle events from light sensor
    • useMagneticFieldSensor

      public AntiFraudConfig.Builder useMagneticFieldSensor(boolean useMagneticFieldSensor)
      Enable or disable magnetic field sensor tracking
      Parameters:
      useMagneticFieldSensor - If true, the tracker handle events from magnetic field sensor
    • useGyroscopeSensor

      public AntiFraudConfig.Builder useGyroscopeSensor(boolean useGyroscopeSensor)
      Enable or disable gyroscope sensor tracking
      Parameters:
      useGyroscopeSensor - If true, the tracker handle events from gyroscope sensor
    • usePressureSensor

      public AntiFraudConfig.Builder usePressureSensor(boolean usePressureSensor)
      Enable or disable pressure sensor tracking
      Parameters:
      usePressureSensor - If true, the tracker handle events from pressure sensor
    • useProximitySensor

      public AntiFraudConfig.Builder useProximitySensor(boolean useProximitySensor)
      Enable or disable proximity sensor tracking
      Parameters:
      useProximitySensor - If true, the tracker handle events from proximity sensor
    • build

      public AntiFraudConfig build()
      Create new anti-fraud config instance with previously specified values
      Returns:
      New instance of AntiFraudConfig