@capacitor-community/media
Version:
Capacitor plugin for saving and retrieving photos and videos, and managing photo albums.
46 lines (40 loc) • 1.31 kB
JavaScript
;
var core = require('@capacitor/core');
const Media = core.registerPlugin('Media', {
web: () => Promise.resolve().then(function () { return web; }).then(m => new m.MediaWeb()),
});
class MediaWeb extends core.WebPlugin {
getMedias(options) {
console.log('getMedias', options);
throw this.unimplemented('Not implemented on web.');
}
getMediaByIdentifier(options) {
console.log('getMediaByIdentifier', options);
throw this.unimplemented('Not implemented on web.');
}
getAlbums() {
throw this.unimplemented('Not implemented on web.');
}
savePhoto(options) {
console.log('savePhoto', options);
throw this.unimplemented('Not implemented on web.');
}
saveVideo(options) {
console.log('saveVideo', options);
throw this.unimplemented('Not implemented on web.');
}
createAlbum(options) {
console.log('createAlbum', options);
throw this.unimplemented('Not implemented on web.');
}
getAlbumsPath() {
console.log('getAlbumsPath');
throw this.unimplemented('Not implemented on web.');
}
}
var web = /*#__PURE__*/Object.freeze({
__proto__: null,
MediaWeb: MediaWeb
});
exports.Media = Media;
//# sourceMappingURL=plugin.cjs.js.map