createInkSignature

fun createInkSignature(@ColorInt inkColor: Int, lineWidthPdf: Float, lines: List<List<PointF>>, biometricSignatureData: BiometricSignatureData? = null, drawWidthRatio: Float = 1.0f): Signature

Helper method to create an ink signature.

Parameters

inkColor

Colour of the ink signature

lineWidthPdf

Signature line width in pdf points

lines

List of ink lines in pdf points

biometricSignatureData

BiometricSignatureData that was collected with this signature. May return null if no biometric data was created

drawWidthRatio

The ratio of signature width to width of the drawing view used when drawing the signature. * This size is used in toAnnotation to auto-size annotation around touched point so that the largest signatures cover 1/4 of the page and * smaller less.