Class BiometricSignatureData.Builder
-
- All Implemented Interfaces:
public final class BiometricSignatureData.Builder
Builder for BiometricSignatureData.
-
-
Constructor Summary
Constructors Constructor Description BiometricSignatureData.Builder()
-
Method Summary
Modifier and Type Method Description BiometricSignatureData
build()
Creates a new immutable BiometricSignatureData. BiometricSignatureData.Builder
setPressurePoints(@Nullable() List<Float> pressurePoints)
Sets a list of pressure points that were collected during signature creation. BiometricSignatureData.Builder
setTimePoints(@Nullable() List<Long> timePoints)
Sets time points that were collected during signature creation. BiometricSignatureData.Builder
setTouchRadius(@Nullable() Float touchRadius)
Sets the touch radius of the input device. BiometricSignatureData.Builder
setInputMethod(@Nullable() BiometricSignatureData.InputMethod inputMethod)
Sets the input method that was used to create the signature. -
-
Method Detail
-
build
BiometricSignatureData build()
Creates a new immutable BiometricSignatureData.
- Returns:
BiometricSignatureData with the values configured by this builder.
-
setPressurePoints
BiometricSignatureData.Builder setPressurePoints(@Nullable() List<Float> pressurePoints)
Sets a list of pressure points that were collected during signature creation. May be
null
if no pressure information was collected. The unit and range of values is defined by the input type and may vary. Usually, this will be a value between0f
(no pressure) and1f
(full pressure) as provided by the getPressure property.- Parameters:
pressurePoints
- List of pressure points.- Returns:
This
Builder
for call chaining.
-
setTimePoints
BiometricSignatureData.Builder setTimePoints(@Nullable() List<Long> timePoints)
Sets time points that were collected during signature creation. May be
null
if no timing values were collected. Time points are milliseconds since the start of drawing the signature. Any time points set will be normalized, so that the first time point will be `0` afterwards.- Parameters:
timePoints
- List of timing values ornull
if no values were collected.- Returns:
This
Builder
for call chaining.
-
setTouchRadius
BiometricSignatureData.Builder setTouchRadius(@Nullable() Float touchRadius)
Sets the touch radius of the input device. The actual value is defined by the input type and may vary. For example, the SignaturePickerDialog will provide the average tool size that was registered while creating the signature (as returned by getSize).
- Parameters:
touchRadius
- Touch radius of the input device ornull
if touch radius is unknown.- Returns:
This
Builder
for call chaining.
-
setInputMethod
BiometricSignatureData.Builder setInputMethod(@Nullable() BiometricSignatureData.InputMethod inputMethod)
Sets the input method that was used to create the signature. May be
null
if the input method is unknown.- Parameters:
inputMethod
- InputMethod value ornull
if input method is unknown.- Returns:
This
Builder
for call chaining.
-
-
-
-