Optional
onOptional
onCallback for document validation. Will be called in the beginning of the load process to allow custom document validation. The promise should be rejected if the document is not valid. In this case the loading will be aborted.
Generated using TypeDoc
Callback for progress handling.