1.0.1 • Published 8 months ago

capacitor-context-menu v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
8 months ago

capacitor-context-menu

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

Install

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

<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: Promise<{ text: string; }>


addListener('processTextReceived', ...)

addListener(eventName: 'processTextReceived', listenerFunc: ListenerCallback) => void
ParamType
eventName'processTextReceived'
listenerFuncListenerCallback

Type Aliases

ListenerCallback

(err: any, ...args: any[]): void

1.0.1

8 months ago

1.0.0

8 months ago

0.0.1

8 months ago