Example
Handle a terminal page render error.
instance.addEventListener("page.renderError", event => {
if (event.error instanceof NutrientViewer.OutOfMemoryError) {
console.log(event.pageIndex, event.pageStillDisplaysContent);
}
});
Properties
boolean
Whether current content for the page is visible when the event is emitted.
This event is emitted when a WebAssembly page render cannot allocate enough memory and still fails after one automatic retry. The device itself can still have free memory, and the page can continue displaying current lower-resolution content when available.