PSPDFSignatureStore

@protocol PSPDFSignatureStore <NSObject, NSSecureCoding>

Allows to securely store ink signatures (as ink annotations) in the keychain. Supports NSSecureCoding since this is part of the PSPDFConfiguration object.

  • Designated initializer. storeName can be used to differentiate between different stores.

    Declaration

    Objective-C

    - (nonnull instancetype)initWithStoreName:(nonnull NSString *)storeName;

    Swift

    init(storeName: String)
  • Add signature to store.

    Declaration

    Objective-C

    - (void)addSignature:(nonnull PSPDFInkAnnotation *)signature;

    Swift

    func addSignature(_ signature: PSPDFInkAnnotation)
  • Remove signature from store.

    Declaration

    Objective-C

    - (BOOL)removeSignature:(nonnull PSPDFInkAnnotation *)signature;

    Swift

    func removeSignature(_ signature: PSPDFInkAnnotation) -> Bool
  • Access the saved signatures (PSPDFInkAnnotation objects).

    Declaration

    Objective-C

    @property (readwrite, copy, nonatomic, null_resettable)
        NSArray<PSPDFInkAnnotation *> *signatures;

    Swift

    var signatures: [PSPDFInkAnnotation]! { get set }
  • The store name used for the keychain storage.

    Declaration

    Objective-C

    @property (readonly, copy, nonatomic) NSString *_Nonnull storeName;

    Swift

    var storeName: String { get }