fix(document-viewer): fix params and docs for canViewDocument (#1568)
* refactor(document-viewer): fix example * Update index.ts * Update index.ts
This commit is contained in:
parent
adf9c5a323
commit
b35417a017
@ -42,10 +42,11 @@ export interface DocumentViewerOptions {
|
|||||||
* constructor(private document: DocumentViewer) { }
|
* constructor(private document: DocumentViewer) { }
|
||||||
*
|
*
|
||||||
* ...
|
* ...
|
||||||
* const options = {
|
* const options: DocumentViewerOptions = {
|
||||||
* title: 'My PDF'
|
* title: 'My PDF'
|
||||||
* }
|
* }
|
||||||
* this.document.view('assets/myFile.pdf', 'application/pdf', options)
|
*
|
||||||
|
* this.document.viewDocument('assets/myFile.pdf', 'application/pdf', options)
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
*
|
*
|
||||||
@ -82,7 +83,7 @@ export class DocumentViewer extends IonicNativePlugin {
|
|||||||
* @param [onError] {Function}
|
* @param [onError] {Function}
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ sync: true })
|
||||||
canViewDocument(url: string, contentType: string, options: Array<DocumentViewerOptions>, onPossible?: Function, onMissingApp?: Function, onImpossible?: Function, onError?: Function): void { }
|
canViewDocument(url: string, contentType: string, options: DocumentViewerOptions, onPossible?: Function, onMissingApp?: Function, onImpossible?: Function, onError?: Function): void { }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Opens the file
|
* Opens the file
|
||||||
|
Loading…
x
Reference in New Issue
Block a user