@finanzritter/nativescript-pdf-view
Version:
A basic PDF viewer plugin for NativeScript, to display PDF documents on iOS and Android.
20 lines • 652 B
JavaScript
import { Property, View } from '@nativescript/core';
export class PDFViewCommon extends View {
static notifyOfEvent(eventName, pdfViewRef) {
const viewer = pdfViewRef.get();
if (viewer) {
viewer.notify({ eventName, object: viewer });
}
}
}
PDFViewCommon.loadEvent = 'load';
export const enableAnnotationRenderingProperty = new Property({
defaultValue: false,
name: 'enableAnnotationRendering',
});
enableAnnotationRenderingProperty.register(PDFViewCommon);
export const srcProperty = new Property({
name: 'src',
});
srcProperty.register(PDFViewCommon);
//# sourceMappingURL=pdf-view.common.js.map