title: Ionic Photoviewer - how to use?
body: <p>I am a beginner in Ionic 2 and I would like to know how you use Photoviewer functionnality from Ionic framework. (available here : <a href="http://ionicframework.com/docs/v2/native/photo-viewer" rel="nofollow noreferrer">official website</a>) </p>
  
  <p>It said :</p>
  
  <p>Usage</p>
  
  <pre><code>import { PhotoViewer } from '@ionic-native/photo-viewer';
  
  constructor(private photoViewer: PhotoViewer) { }
  
  ...
  
  this.photoViewer.show('https://example.com/path/to/image.jpg');
  
  this.photoViewer.show('https://example.com/path/to/image.jpg', 'My image title', {share: false});
  </code></pre>
  
  <p>But  where do I need to put it ? in a function ? how the function will be called ? </p>
  
  <p>Thank's for all. </p>