⚙
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.
Flutter
React Native
The duration of the measurement in seconds. Default is set to 1 minute. Note that at least 35 seconds are required to perform a correct analysis.
sampleTime = 60;
When enabled and supported by the device the SDK will turn on the camera flashlight while measuring. Note that an (external) light source is necessary to perform a good measurement.
flashEnabled = true;
When enabled and supported by the device, the measurement result will hold gravitational data.
gravEnabled = false;
When enabled and supported by the device, the measurement result will hold gyroscope data.
gyroEnabled = false;
When enabled and supported by the device, the measurement result will hold accelerometer data.
accEnabled = false;
When enabled and supported by the device, the measurement result will hold rotational data.
rotationEnabled = false;
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.
movementDetectionEnabled = true;
The time until the finger detection will trigger the
onFingerDetectionTimeExpired
() event.By Default this value is
-1
, wich indicates that it will keep waiting untill a finger is detectedfingerDetectionExpiryTime = -1;
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.waitForStartRecordingSignal = false;
Determines the graphBackground color. By default there is no background color
graphBackgroundColor = "";
When enabled the component draws a graph of the recorded PPG signal.
drawGraph = true;
Determines the color of the graph line.
lineColor = "#63b3a6";
Determines the thickness of the graph line.
lineThickness = 8;
When enabled, the component will draw a background for the graph
drawBackground = true;
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!
<RNFibriCheckView
...
style = {{ flex: 1, backgroundColor: '#ffffff' }}
...
/>
The duration of the measurement in seconds. Default is set to 1 minute. Note that at least 35 seconds are required to perform a correct analysis.
<RNFibriCheckView
...
sampleTime={60};
...
/>
When enabled and supported by the device the SDK will turn on the camera flashlight while measuring. Note that an (external) light source is necessary to perform a good measurement.
<RNFibriCheckView
...
flashEnabled={true};
...
/>
When enabled and supported by the device, the measurement result will hold gravitational data.
<RNFibriCheckView
...
gravEnabled={false};
...
/>
When enabled and supported by the device, the measurement result will hold gyroscope data.
<RNFibriCheckView
...
gyroEnabled={false};
...
/>
When enabled and supported by the device, the measurement result will hold accelerometer data.
<RNFibriCheckView
...
accEnabled={false};
...
/>
When enabled and supported by the device, the measurement result will hold rotational data.
<RNFibriCheckView
...
rotationEnabled={true};
...
/>
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.
<RNFibriCheckView
...
movementDetectionEnabled={true};
...
/>
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
.The time until the pulse detection will trigger the
onPulseDetectionTimeExpired
() event.By default this value is 10.
<RNFibriCheckView
...
pulseDetectionExpiryTime={10};
...
/>
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<RNFibriCheckView
...
fingerDetectionExpiryTime={-1};
...
/>
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.<RNFibriCheckView
...
waitForStartRecordingSignal={false};
...
/>
Determines the color of the area under the graph. By default, this color is omitted. The backgroundColor is thus displayed under the graph.
<RNFibriCheckView
...
//graphBackgroundColor={''};
...
/>
When enabled the component draws a graph of the recorded PPG signal.
<RNFibriCheckView
...
drawGraph={true};
...
/>
Determines the color of the graph line.
<RNFibriCheckView
...
lineColor={'#63b3a6'};
...
/>
Determines the thickness of the graph line.
<RNFibriCheckView
...
lineThickness={8}
...
/>
When enabled, the component will draw a background for the graph
<RNFibriCheckView
...
drawBackground={true}
...
/>
Last modified 16d ago