Ecosyste.ms: Awesome

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

Awesome Lists | Featured Topics | Projects

https://github.com/Cap-go/capacitor-shake

Capacitor Plugin to detect when a physical device performs a shake gesture
https://github.com/Cap-go/capacitor-shake

Last synced: about 2 months ago
JSON representation

Capacitor Plugin to detect when a physical device performs a shake gesture

Awesome Lists containing this project

README

        

# @capgo/capacitor-shake

Capgo - Instant updates for capacitor


➡️ Get Instant updates for your App with Capgo 🚀


Fix your annoying bug now, Hire a Capacitor expert 💪


Detect shake gesture in device

## Install

```bash
npm install @capgo/capacitor-shake
npx cap sync
```

## API

* [`addListener('shake', ...)`](#addlistenershake-)
* [Interfaces](#interfaces)

### addListener('shake', ...)

```typescript
addListener(eventName: "shake", listenerFunc: () => void) => Promise
```

| Param | Type |
| ------------------ | -------------------------- |
| **`eventName`** | 'shake' |
| **`listenerFunc`** | () => void |

**Returns:** Promise<PluginListenerHandle>

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

### Interfaces

#### PluginListenerHandle

| Prop | Type |
| ------------ | ----------------------------------------- |
| **`remove`** | () => Promise<void> |