# capacitor-context-menu

> Allows catching context-menu events (PROCESS_TEXT) from android intentions

Latest version **1.0.1** (published 2023-10-06) · MIT license · 0 weekly downloads

## Install

```sh
npm install capacitor-context-menu
pnpm add capacitor-context-menu
yarn add capacitor-context-menu
bun add capacitor-context-menu
```

## Health

**Score 25/100 (F)** — status: abandoned.

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.1 |
| Published | 2023-10-06 |
| First published | 2023-10-05 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 17.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Yukaru |
| Maintainers | yukaru_ |
| Keywords | capacitor, plugin, native |

## Links

- npm: https://www.npmjs.com/package/capacitor-context-menu
- Repository: https://github.com/Yukaru-san/capacitor-context-menu.git
- Homepage: https://github.com/Yukaru-san/capacitor-context-menu.git#readme
- Issues: https://github.com/Yukaru-san/capacitor-context-menu.git/issues
- npm.io page: https://npm.io/package/capacitor-context-menu

## Recent versions

- 1.0.1 (latest) — 2023-10-06
- 1.0.0 — 2023-10-06
- 0.0.1 — 2023-10-05

## README

# capacitor-context-menu

Allows catching context-menu events (PROCESS_TEXT) from android intentions

## Install

```bash
npm install capacitor-context-menu
npx cap sync
```

## Manifest
To use this plugin you need to add the following to your AndroidManifest.xml inside your MainActivity

```xml
<intent-filter android:autoVerify="true">
    <action android:name="android.intent.action.PROCESS_TEXT" />
    <category android:name="android.intent.category.DEFAULT" />
    <data android:mimeType="text/plain" />
</intent-filter>
``

## API

<docgen-index>

* [`checkProcessTextIntentReceived()`](#checkprocesstextintentreceived)
* [`addListener('processTextReceived', ...)`](#addlistenerprocesstextreceived)
* [Type Aliases](#type-aliases)

</docgen-index>

<docgen-api>
<!--Update the source file JSDoc comments and rerun docgen to update the docs below-->

### checkProcessTextIntentReceived()

```typescript
checkProcessTextIntentReceived() => Promise<{ text: string; }>
```

**Returns:** <code>Promise&lt;{ text: string; }&gt;</code>

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


### addListener('processTextReceived', ...)

```typescript
addListener(eventName: 'processTextReceived', listenerFunc: ListenerCallback) => void
```

| Param              | Type                                                          |
| ------------------ | ------------------------------------------------------------- |
| **`eventName`**    | <code>'processTextReceived'</code>                            |
| **`listenerFunc`** | <code><a href="#listenercallback">ListenerCallback</a></code> |

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


### Type Aliases


#### ListenerCallback

<code>(err: any, ...args: any[]): void</code>

</docgen-api>

---
_Source: https://npm.io/package/capacitor-context-menu · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
