Nutrient 2024.4 migration guide
This guide outlines the changes to Nutrient Android SDK 2024.4.
Breaking API changes
Legacy digital signature APIs
Since version 8.9 was released last year, the old signing API has been deprecated in favor of the much simpler SigningManager API. See the migration guide here. We also have Catalog examples showing how to use the new API here(opens in a new tab) and here(opens in a new tab), as well as a guide here.
Since version 2024.4, the deprecated code has been removed. It should be clear in your IDE where in your code you’re using the deprecated code. If you need help, contact Support.
There are additional public APIs and resources without a deprecation period that were removed in this release:
- PdfFragment#setSignatureMetadata()and- PdfFragment#getSignatureMetadata()have been removed. Metadata isn’t stored anywhere and is only used in the signing process.
- PdfFragment#setDocumentSigningListener()has been removed, as we don’t have a signing listener. Signing is done via programmatic API only.
- DocumentSigningListenerhas been removed, as it’s no longer used.
- Signature#getSignerIdentifier()has been removed, as we have no need to store- Signer.
- Signature#create()methods have changed to remove- signerIdentifier, as it’s no longer required.
- SignatureCertificateSelectionModehas been removed, as we don’t store certificates.
- PdfConfiguration#signatureCertificateSelectionModehas been removed, as we don’t store certificates.
- SignatureOptionshas been changed to remove the- SignatureCertificateSelectionModeand- defaultSignerproperties, as they’re no longer required.
- Style attributes: pspdf__signerChipIconBackground,pspdf__signerChipIconRes, andpspdf__signerChipIconTintare no longer available and can be deleted. There’s no replacement, as we no longer storeSignerobjects in the SDK.
Deprecated APIs
- AnnotationEditingController#saveCurrentlySelectedAnnotation()has been deprecated and replaced by the plural- saveCurrentlySelectedAnnotations().
 
  
  
  
 