com.pspdfkit.configuration.signatures.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.
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
abstract static SignatureColorOptions |
fromColorInt(int option1, int option2, int option3)
Creates a SignatureColorOptions from 3 resolved ColorInts.
| ||||||||||
abstract static SignatureColorOptions |
fromColorRes(int option1, int option2, int option3)
Creates a SignatureColorOptions from 3 color resources.
| ||||||||||
abstract static SignatureColorOptions |
fromDefaults()
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.
| ||||||||||
abstract int |
option1(Context context)
Gets the first color option.
| ||||||||||
abstract int |
option2(Context context)
Gets the second color option.
| ||||||||||
abstract int |
option3(Context context)
Gets the third color option.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Creates a SignatureColorOptions from 3 resolved ColorInts.
option1 | First color option. |
---|---|
option2 | Second color option. |
option3 | Third color option. |
Creates a SignatureColorOptions from 3 color resources.
option1 | First color resource option. |
---|---|
option2 | Second color resource option. |
option3 | Third color resource option. |
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.
Gets the first color option.
context | Context used when colors are from resources.
Must not be null when created fromColorRes(int, int, int)
|
---|
Gets the second color option.
context | Context used when colors are from resources.
Must not be null when created fromColorRes(int, int, int)
|
---|
Gets the third color option.
context | Context used when colors are from resources.
Must not be null when created fromColorRes(int, int, int)
|
---|