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.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Constructor Detail

    • 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.
      • option3

        @ColorInt() abstract int option3(@Nullable() Context context)

        Gets the third color option.

        Parameters:
        context - Context used when colors are from resources.