fix(document-viewer): fix param type (#1634)
Options for viewDocument should be an DocumentViewerOptions object, not array of DocumentViewerOptions objects
This commit is contained in:
parent
9bf9e9d073
commit
985193bebd
@ -90,13 +90,13 @@ export class DocumentViewer extends IonicNativePlugin {
|
|||||||
*
|
*
|
||||||
* @param url {string} Url to the file
|
* @param url {string} Url to the file
|
||||||
* @param contentType {string} Content type of the file
|
* @param contentType {string} Content type of the file
|
||||||
* @param options {Array<DocumentViewerOptions>} options
|
* @param options {DocumentViewerOptions} options
|
||||||
* @param [onShow] {Function}
|
* @param [onShow] {Function}
|
||||||
* @param [onClose] {Function}
|
* @param [onClose] {Function}
|
||||||
* @param [onMissingApp] {Function}
|
* @param [onMissingApp] {Function}
|
||||||
* @param [onError] {Function}
|
* @param [onError] {Function}
|
||||||
*/
|
*/
|
||||||
@Cordova({ sync: true })
|
@Cordova({ sync: true })
|
||||||
viewDocument(url: string, contentType: string, options: Array<DocumentViewerOptions>, onShow?: Function, onClose?: Function, onMissingApp?: Function, onError?: Function): void { }
|
viewDocument(url: string, contentType: string, options: DocumentViewerOptions, onShow?: Function, onClose?: Function, onMissingApp?: Function, onError?: Function): void { }
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user