SignatureColorOptions

Holds the 3 signature color options available when using the Electronic Signatures "Draw" or "Type" signing UI. Can be created using ColorRes or ColorInt.

Functions

Link copied to clipboard
open fun fromColorInt(@ColorInt option1: Int, @ColorInt option2: Int, @ColorInt option3: Int): SignatureColorOptions
Creates a SignatureColorOptions from 3 resolved ColorInts.
Link copied to clipboard
open fun fromColorRes(@ColorRes option1: Int, @ColorRes option2: Int, @ColorRes option3: Int): SignatureColorOptions
Creates a SignatureColorOptions from 3 color resources.
Link copied to clipboard
Creates the default SignatureColorOptions from resources "R.color.pspdf__color_electronic_signature_drawing*" Defaults are black, purple, and blue for options 1, 2, and 3 respectively.
Link copied to clipboard
abstract fun option1(@Nullable context: Context): Int
Gets the first color option.
Link copied to clipboard
abstract fun option2(@Nullable context: Context): Int
Gets the second color option.
Link copied to clipboard
abstract fun option3(@Nullable context: Context): Int
Gets the third color option.