Skip to content

Commit

Permalink
fix(document-viewer): fix params and docs for canViewDocument (#1568)
Browse files Browse the repository at this point in the history
* refactor(document-viewer): fix example

* Update index.ts

* Update index.ts
  • Loading branch information
danielsogl authored and ihadeed committed May 16, 2017
1 parent adf9c5a commit b35417a
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/@ionic-native/plugins/document-viewer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,10 +42,11 @@ export interface DocumentViewerOptions {
* constructor(private document: DocumentViewer) { }
*
* ...
* const options = {
* const options: DocumentViewerOptions = {
* title: 'My PDF'
* }
* this.document.view('assets/myFile.pdf', 'application/pdf', options)
*
* this.document.viewDocument('assets/myFile.pdf', 'application/pdf', options)
*
* ```
*
Expand Down Expand Up @@ -82,7 +83,7 @@ export class DocumentViewer extends IonicNativePlugin {
* @param [onError] {Function}
*/
@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
Expand Down

0 comments on commit b35417a

Please sign in to comment.