public interface

SignatureColorOptions

implements Parcelable
com.pspdfkit.configuration.signatures.SignatureColorOptions

Class Overview

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

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
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)
Get the first color option.
abstract int option2(Context context)
Get the second color option.
abstract int option3(Context context)
Get the third color option.
[Expand]
Inherited Methods
From interface android.os.Parcelable

Public Methods

public static abstract SignatureColorOptions fromColorInt (int option1, int option2, int option3)

Creates a SignatureColorOptions from 3 resolved ColorInts.

Parameters
option1 First color option.
option2 Second color option.
option3 Third color option.

public static abstract SignatureColorOptions fromColorRes (int option1, int option2, 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.

public static abstract 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.

public abstract int option1 (Context context)

Get the first color option.

Parameters
context Context used when colors are from resources. Must not be null when created fromColorRes(int, int, int)

public abstract int option2 (Context context)

Get the second color option.

Parameters
context Context used when colors are from resources. Must not be null when created fromColorRes(int, int, int)

public abstract int option3 (Context context)

Get the third color option.

Parameters
context Context used when colors are from resources. Must not be null when created fromColorRes(int, int, int)