0
私はIonic 2の初心者です。IonicフレームワークからPhotoviewer functionnalityをどのように使用するかを知りたいと思います。 (ここでは利用可能:official website)Ionic Photoviewer - 使い方は?
それは言った:
使用
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});
しかし、私はそれを配置する必要がありますか?関数で?どのように関数が呼び出されるのでしょうか?
ありがとうございます。