setDocumentName method

void setDocumentName(
  1. String? documentName
)

Sets the document type to authenticate.

param documentName Document type to authenticate. throws DocumentException An error has occurred during Document Library execution.

Implementation

void setDocumentName(String? documentName) {
  Pointer<Char>? pDocumentName = documentName?.toNativeUtf8().cast<Char>();
  try {
    var err = documentSDK.id3DocumentAuthenticator_SetDocumentName(_pHandle.value, pDocumentName ?? nullptr);
    if (err != DocumentError.success.value) {
      throw DocumentException(err);
    }
  } finally {
    if (pDocumentName != null) {
      calloc.free(pDocumentName);
    }
  }
}