Package com.my.tracker.config
Class AntiFraudConfig.Builder
java.lang.Object
com.my.tracker.config.AntiFraudConfig.Builder
- Enclosing class:
- AntiFraudConfig
Builder-class for
AntiFraudConfig-
Method Summary
Modifier and TypeMethodDescriptionbuild()Create new anti-fraud config instance with previously specified valuesuseGyroscopeSensor(boolean useGyroscopeSensor) Enable or disable gyroscope sensor trackinguseLightSensor(boolean useLightSensor) Enable or disable light sensor trackinguseMagneticFieldSensor(boolean useMagneticFieldSensor) Enable or disable magnetic field sensor trackingusePressureSensor(boolean usePressureSensor) Enable or disable pressure sensor trackinguseProximitySensor(boolean useProximitySensor) Enable or disable proximity sensor tracking
-
Method Details
-
useLightSensor
Enable or disable light sensor tracking- Parameters:
useLightSensor- If true, the tracker handle events from light sensor
-
useMagneticFieldSensor
Enable or disable magnetic field sensor tracking- Parameters:
useMagneticFieldSensor- If true, the tracker handle events from magnetic field sensor
-
useGyroscopeSensor
Enable or disable gyroscope sensor tracking- Parameters:
useGyroscopeSensor- If true, the tracker handle events from gyroscope sensor
-
usePressureSensor
Enable or disable pressure sensor tracking- Parameters:
usePressureSensor- If true, the tracker handle events from pressure sensor
-
useProximitySensor
Enable or disable proximity sensor tracking- Parameters:
useProximitySensor- If true, the tracker handle events from proximity sensor
-
build
Create new anti-fraud config instance with previously specified values- Returns:
- New instance of
AntiFraudConfig
-