setCustomData

open fun setCustomData(@Nullable customData: JSONObject)

Sets custom data to the annotation. The contents of this property are saved to the document when saving.

Annotations can store additional user-specified data here. PSPDFKit will not use or evaluate customData in the UI directly. You have full control over this property. For new annotation, this defaults to null.

Parameters

customData

JSONObject to set as the custom data. null to clear the custom data property.