diff --git a/src/@ionic-native/plugins/photo-viewer/index.ts b/src/@ionic-native/plugins/photo-viewer/index.ts index ffe2019ea0..7311742c6d 100644 --- a/src/@ionic-native/plugins/photo-viewer/index.ts +++ b/src/@ionic-native/plugins/photo-viewer/index.ts @@ -6,6 +6,27 @@ export interface PhotoViewerOptions { * Set to false to disable the share button (Android only). Default: true */ share?: boolean; + /** + * Add HTTP headers to the request. Useful for authenticated pages. + * The value is a string in a JSON format. Default: '' + */ + headers?: string; + /** + * Option for close button visibility when share false [ONLY FOR iOS] + */ + closeButton?: boolean; + /** + * If you need to copy image to reference before show then set it true [ONLY FOR iOS] + */ + copyToReference?: boolean; + /** + * Enable or Disable Picasso Options ( Only Android ): fit, centerInside, centerCrop. + */ + piccasoOptions?: { + fit?: boolean; + centerInside?: boolean; + centerCrop?: boolean; + }; } /** @@ -22,6 +43,8 @@ export interface PhotoViewerOptions { * this.photoViewer.show('https://mysite.com/path/to/image.jpg'); * * this.photoViewer.show('https://mysite.com/path/to/image.jpg', 'My image title', {share: false}); + * + * this.photoViewer.show('https://mysecuresite.com/path/to/image.jpg', 'My image title', {share: false, headers: '{username:foo,password:bar}'}); * ``` */ @Plugin({