Class ElectronicSignatureOptions
-
- All Implemented Interfaces:
-
android.os.Parcelable
public final class ElectronicSignatureOptions implements Parcelable
Options for configuring the ElectronicSignatureFragment. An instance of this can be passed to .
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public class
ElectronicSignatureOptions.Companion
-
Field Summary
Fields Modifier and Type Field Description private final SignatureSavingStrategy
signatureSavingStrategy
private final SignatureColorOptions
signatureColorOptions
private final List<SignatureCreationMode>
signatureCreationModes
public final static ElectronicSignatureOptions.Companion
Companion
-
Constructor Summary
Constructors Constructor Description ElectronicSignatureOptions(SignatureSavingStrategy signatureSavingStrategy, SignatureColorOptions signatureColorOptions, List<SignatureCreationMode> signatureCreationModes)
-
Method Summary
Modifier and Type Method Description final SignatureSavingStrategy
getSignatureSavingStrategy()
The saving strategy used when adding signatures. final SignatureColorOptions
getSignatureColorOptions()
Defines the signature color options available when using the "Draw" or "Type" signing UI. final List<SignatureCreationMode>
getSignatureCreationModes()
Which modes do you want to support? -
-
Constructor Detail
-
ElectronicSignatureOptions
ElectronicSignatureOptions(SignatureSavingStrategy signatureSavingStrategy, SignatureColorOptions signatureColorOptions, List<SignatureCreationMode> signatureCreationModes)
-
-
Method Detail
-
getSignatureSavingStrategy
final SignatureSavingStrategy getSignatureSavingStrategy()
The saving strategy used when adding signatures. Defaults to . This will only work if a com.pspdfkit.signatures.storage.SignatureStorage has been created and set via com.pspdfkit.ui.PdfFragment.setSignatureStorage, otherwise SignatureSavingStrategy.NEVER_SAVE will be used.
-
getSignatureColorOptions
final SignatureColorOptions getSignatureColorOptions()
Defines the signature color options available when using the "Draw" or "Type" signing UI. Defaults to black, purple, and blue. signatureColorOptions Can be created from @ColorRes or @ColorInt with SignatureColorOptions.fromColorRes and SignatureColorOptions.fromColorInt respectively. Defaults can be created with SignatureColorOptions.fromDefaults
-
getSignatureCreationModes
@Size(min = 1, max = 3) final List<SignatureCreationMode> getSignatureCreationModes()
Which modes do you want to support? Defaults to Draw/Type/Image.
-
-
-
-