An open API service indexing awesome lists of open source software.

https://github.com/aeharding/capacitor-stash-media


https://github.com/aeharding/capacitor-stash-media

Last synced: over 1 year ago
JSON representation

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; } |

--------------------