https://github.com/aeharding/capacitor-stash-media
https://github.com/aeharding/capacitor-stash-media
Last synced: over 1 year ago
JSON representation
- Host: GitHub
- URL: https://github.com/aeharding/capacitor-stash-media
- Owner: aeharding
- License: mit
- Created: 2023-08-09T02:24:32.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2025-04-09T02:56:33.000Z (over 1 year ago)
- Last Synced: 2025-04-11T22:12:13.471Z (over 1 year ago)
- Language: Java
- Size: 243 KB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- License: LICENSE
Awesome Lists containing this project
README
# capacitor-stash-media
Some helper functions for the user to stash (copy, save, etc) media from the app
## Install
```bash
npm install capacitor-stash-media
npx cap sync
```
## API
* [`savePhoto(...)`](#savephoto)
* [`copyPhotoToClipboard(...)`](#copyphototoclipboard)
* [`shareImage(...)`](#shareimage)
* [`saveVideo(...)`](#savevideo)
### savePhoto(...)
```typescript
savePhoto(options: { url: string; }) => Promise
```
| Param | Type |
| ------------- | ----------------------------- |
| **`options`** | { url: string; } |
--------------------
### copyPhotoToClipboard(...)
```typescript
copyPhotoToClipboard(options: { url: string; }) => Promise
```
| Param | Type |
| ------------- | ----------------------------- |
| **`options`** | { url: string; } |
--------------------
### shareImage(...)
```typescript
shareImage(options: { url: string; title: string; }) => Promise
```
| Param | Type |
| ------------- | -------------------------------------------- |
| **`options`** | { url: string; title: string; } |
--------------------
### saveVideo(...)
```typescript
saveVideo(options: { url: string; }) => Promise
```
| Param | Type |
| ------------- | ----------------------------- |
| **`options`** | { url: string; } |
--------------------