Interface SignatureColorOptions
-
- All Implemented Interfaces:
-
android.os.Parcelable
public interface SignatureColorOptions implements Parcelable
Holds the 3 signature color options available when using the Electronic Signatures "Draw" or "Type" signing UI. Can be created using ColorRes or ColorInt.
-
-
Method Summary
Modifier and Type Method Description static SignatureColorOptions
fromColorInt(@ColorInt() int option1, @ColorInt() int option2, @ColorInt() int option3)
Creates a SignatureColorOptions from 3 resolved ColorInts. static SignatureColorOptions
fromColorRes(@ColorRes() int option1, @ColorRes() int option2, @ColorRes() int option3)
Creates a SignatureColorOptions from 3 color resources. 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(@Nullable() Context context)
Gets the first color option. abstract int
option2(@Nullable() Context context)
Gets the second color option. abstract int
option3(@Nullable() Context context)
Gets the third color option. -
-
Method Detail
-
fromColorInt
static SignatureColorOptions fromColorInt(@ColorInt() int option1, @ColorInt() int option2, @ColorInt() int option3)
Creates a SignatureColorOptions from 3 resolved ColorInts.
- Parameters:
option1
- First color option.option2
- Second color option.option3
- Third color option.
-
fromColorRes
static SignatureColorOptions fromColorRes(@ColorRes() int option1, @ColorRes() int option2, @ColorRes() int option3)
Creates a SignatureColorOptions from 3 color resources.
- Parameters:
option1
- First color resource option.option2
- Second color resource option.option3
- Third color resource option.
-
fromDefaults
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.
-
option1
@ColorInt() abstract int option1(@Nullable() Context context)
Gets the first color option.
- Parameters:
context
- Context used when colors are from resources.
-
option2
@ColorInt() abstract int option2(@Nullable() Context context)
Gets the second color option.
- Parameters:
context
- Context used when colors are from resources.
-
-
-
-