public static final class

BiometricSignatureData.Builder

extends Object
java.lang.Object
   ↳ com.pspdfkit.signatures.BiometricSignatureData.Builder

Class Overview

Builder for BiometricSignatureData.

Summary

Public Constructors
Builder()
Public Methods
BiometricSignatureData build()
Creates a new immutable BiometricSignatureData.
BiometricSignatureData.Builder setInputMethod(BiometricSignatureData.InputMethod inputMethod)
Sets the input method that was used to create the signature.
BiometricSignatureData.Builder setPressurePoints(List<Float> pressurePoints)
Sets a list of pressure points that were collected during signature creation.
BiometricSignatureData.Builder setTimePoints(List<Long> timePoints)
Sets time points that were collected during signature creation.
BiometricSignatureData.Builder setTouchRadius(Float touchRadius)
Sets the touch radius of the input device.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public Builder ()

Public Methods

public BiometricSignatureData build ()

Creates a new immutable BiometricSignatureData.

Returns

public BiometricSignatureData.Builder setInputMethod (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 BiometricSignatureData.InputMethod value or null if input method is unknown.
Returns
  • This Builder for call chaining.

public BiometricSignatureData.Builder setPressurePoints (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 between 0f (no pressure) and 1f (full pressure) as provided by the getPressure() property.

Parameters
pressurePoints List of pressure points.
Returns
  • This Builder for call chaining.

public BiometricSignatureData.Builder setTimePoints (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 or null if no values were collected.
Returns
  • This Builder for call chaining.

public BiometricSignatureData.Builder setTouchRadius (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 or null if touch radius is unknown.
Returns
  • This Builder for call chaining.