UNPKG

@finanzritter/nativescript-pdf-view

Version:

A basic PDF viewer plugin for NativeScript, to display PDF documents on iOS and Android.

27 lines (26 loc) 869 B
/// <reference types="AndroidPdfViewer" /> import pdfviewer = com.github.barteksc.pdfviewer; import { PDFViewCommon } from './pdf-view.common'; declare class PDFViewSubclass extends pdfviewer.PDFView { static constructorCalled: boolean; private uri; private enableAnnotationRendering; private onLoadHandler; constructor(a: any, b: any); setUri(uri: globalAndroid.net.Uri): void; setEnableAnnotationRendering(enable: boolean): void; setOnLoadHandler(func: any): void; drawPdf(): void; onAttachedToWindow(): void; } export declare class PDFView extends PDFViewCommon { private promise; private tempFolder; private onLoadHandler; get android(): PDFViewSubclass; set android(value: PDFViewSubclass); createNativeView(): PDFViewSubclass; loadPDF(src: string): void; private cacheThenLoad; } export {};