Skip to content

Commit

Permalink
fix(document-viewer): fix params
Browse files Browse the repository at this point in the history
  • Loading branch information
ihadeed committed May 9, 2017
1 parent 6855fe8 commit 1379f63
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions src/@ionic-native/plugins/document-viewer/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export interface DocumentViewerOptions {
autoClose: {
onPause: boolean;
};
};
}

/**
* @name Document Viewer
Expand Down Expand Up @@ -56,7 +56,7 @@ export interface DocumentViewerOptions {
pluginName: 'Document Viewer',
plugin: 'cordova-plugin-document-viewer',
pluginRef: 'SitewaertsDocumentViewer',
repo: 'DocumentViewer',
repo: 'https://github.com/sitewaerts/cordova-plugin-document-viewer',
platforms: ['Android', 'iOS', 'Windows']
})
@Injectable()
Expand All @@ -76,18 +76,26 @@ export class DocumentViewer extends IonicNativePlugin {
* @param url {string} Url to the file
* @param contentType {string} Content type of the file
* @param options {Array<DocumentViewerOptions>} options
* @param [onPossible] {Function}
* @param [onMissingApp] {Function}
* @param [onImpossible] {Function}
* @param [onError] {Function}
*/
@Cordova({ sync: true })
canViewDocument(url: string, contentType: string, options: Array<DocumentViewerOptions>): void { }
canViewDocument(url: string, contentType: string, options: Array<DocumentViewerOptions>, onPossible?: Function, onMissingApp?: Function, onImpossible?: Function, onError?: Function): void { }

/**
* Opens the file
*
* @param url {string} Url to the file
* @param contentType {string} Content type of the file
* @param options {Array<DocumentViewerOptions>} options
* @param [onShow] {Function}
* @param [onClose] {Function}
* @param [onMissingApp] {Function}
* @param [onError] {Function}
*/
@Cordova({ sync: true })
viewDocument(url: string, contentType: string, options: Array<DocumentViewerOptions>): void { }
viewDocument(url: string, contentType: string, options: Array<DocumentViewerOptions>, onShow?: Function, onClose?: Function, onMissingApp?: Function, onError?: Function): void { }

}

0 comments on commit 1379f63

Please sign in to comment.