# @vinit_poojary/capacitor-intent

> Capacitor Plugin for android intent

Latest version **0.1.0** (published 2023-03-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @vinit_poojary/capacitor-intent
pnpm add @vinit_poojary/capacitor-intent
yarn add @vinit_poojary/capacitor-intent
bun add @vinit_poojary/capacitor-intent
```

## Health

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

Positive: has types; esm support; no vulnerabilities.

Warnings: low downloads; pre 1.0.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 0.1.0 |
| Published | 2023-03-13 |
| First published | 2022-07-02 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 12 |
| Unpacked size | 17.1 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | Vinit Poojary |
| Maintainers | vinit_poojary |
| Keywords | capacitor, plugin, native |

## Links

- npm: https://www.npmjs.com/package/@vinit_poojary/capacitor-intent
- Repository: https://github.com/vinit-poojary/capacitor-intent.git
- Homepage: https://github.com/vinit-poojary/capacitor-intent.git#readme
- Issues: https://github.com/vinit-poojary/capacitor-intent.git/issues
- npm.io page: https://npm.io/package/@vinit_poojary/capacitor-intent

## Dependencies (12)

- [eslint](https://npm.io/package/eslint.md) ^8.36.0
- [rimraf](https://npm.io/package/rimraf.md) ^4.4.0
- [rollup](https://npm.io/package/rollup.md) ^3.19.1
- [prettier](https://npm.io/package/prettier.md) ^2.8.4
- [typescript](https://npm.io/package/typescript.md) ^4.9.5
- [@types/node](https://npm.io/package/@types/node.md) ^18.15.1
- [@capacitor/ios](https://npm.io/package/@capacitor/ios.md) ^4.7.0
- [@capacitor/core](https://npm.io/package/@capacitor/core.md) ^4.7.0
- [@capacitor/docgen](https://npm.io/package/@capacitor/docgen.md) ^0.2.1
- [@capacitor/android](https://npm.io/package/@capacitor/android.md) ^4.7.0
- [prettier-plugin-java](https://npm.io/package/prettier-plugin-java.md) ^2.1.0
- [@ionic/prettier-config](https://npm.io/package/@ionic/prettier-config.md) ^2.0.0

## Recent versions

- 0.1.0 (latest) — 2023-03-13
- 0.0.9 — 2022-07-02
- 0.0.8 — 2022-07-02
- 0.0.7 — 2022-07-02
- 0.0.6 — 2022-07-02
- 0.0.5 — 2022-07-02
- 0.0.4 — 2022-07-02
- 0.0.3 — 2022-07-02
- 0.0.2 — 2022-07-02

## README

# Android Intent Plugin for Capacitor

![npm](https://img.shields.io/npm/v/@vinit_poojary/capacitor-intent)
![npm bundle size](https://img.shields.io/bundlephobia/minzip/@vinit_poojary/capacitor-intent)
![NPM](https://img.shields.io/npm/l/@vinit_poojary/capacitor-intent)

Capacitor Plugin for android intent

## Install

```bash
npm install @vinit_poojary/capacitor-intent
npx cap sync
```

```bash
yarn add @vinit_poojary/capacitor-intent
yarn cap sync
```
## Configuration

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

## Usage/Examples

```javascript
import { CapacitorIntent } from '@vinit_poojary/capacitor-intent';
```

```javascript
CapacitorIntent.addListener('getSentIntent', async ({ extraData, type }) => {
  console.log('type', type);
  console.log('extraData', extraData);
});
```

## API

<docgen-index>

* [`addListener('getSentIntent', ...)`](#addlistenergetsentintent)
* [Interfaces](#interfaces)

</docgen-index>

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

### addListener('getSentIntent', ...)

```typescript
addListener(eventName: 'getSentIntent', listenerFunc: (data: IntentData) => void) => Promise<PluginListenerHandle> & PluginListenerHandle
```

| Param              | Type                                                                 |
| ------------------ | -------------------------------------------------------------------- |
| **`eventName`**    | <code>'getSentIntent'</code>                                         |
| **`listenerFunc`** | <code>(data: <a href="#intentdata">IntentData</a>) =&gt; void</code> |

**Returns:** <code>Promise&lt;<a href="#pluginlistenerhandle">PluginListenerHandle</a>&gt; & <a href="#pluginlistenerhandle">PluginListenerHandle</a></code>

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


### Interfaces


#### PluginListenerHandle

| Prop         | Type                                      |
| ------------ | ----------------------------------------- |
| **`remove`** | <code>() =&gt; Promise&lt;void&gt;</code> |


#### IntentData

| Prop            | Type             |
| --------------- | ---------------- |
| **`extraData`** | <code>any</code> |
| **`type`**      | <code>any</code> |

</docgen-api>

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