Properties
When you want to override the default settings (not recommended) you can adjust some of the module's default parameters. The code samples indicate their default values.
Styling
Add custom styling to the component. As a default, { flex: 1, backgroundColor: '#ffffff' }
is used.
When customizing this, make sure to always add a backgroundColor!
Measurement Settings
sampleTime
The duration of the measurement in seconds. Default is set to 1 minute.
flashEnabled
When enabled and supported by the device the SDK will turn on the camera flashlight while measuring.
gravEnabled
When enabled and supported by the device, the measurement result will hold gravitational data.
gyroEnabled
When enabled and supported by the device, the measurement result will hold gyroscope data.
accEnabled
When enabled and supported by the device, the measurement result will hold accelerometer data.
rotationEnabled
When enabled and supported by the device, the measurement result will hold rotational data.
movementDetectionEnabled
When enabled the onMovementDetected()
event will be thrown when movement is detected.
The detection will trigger when the movement vector is lower than 6 or higher than 14.
In some cases it might be useful to disable movement detection by setting movementDetectionEnable={false}
. This prevents movement detection from happening and is what we call debug mode
.
pulseDetectionExpiryTime
The time until the pulse detection will trigger the onPulseDetectionTimeExpired
() event.
By default this value is 10.
fingerDetectionExpiryTime
The time until the finger detection will trigger the onFingerDetectionTimeExpired
() event.
By default this value is -1
, which indicates that it will keep waiting until a pulse is detected
waitForStartRecordingSignal
Normally, when the calibration is ready, the measurement will start recording. When this flag is enabled, the measurement will wait untill the startRecording()
command has been given.
Graph Settings
graphBackgroundColor
Determines the color of the area under the graph. By default, this color is omitted. The backgroundColor is thus displayed under the graph.
drawGraph
When enabled the component draws a graph of the recorded PPG signal.
lineColor
Determines the color of the graph line.
lineThickness
Determines the thickness of the graph line.
drawBackground
When enabled, the component will draw a background for the graph
Last updated