# @hanwha-ss1/plugin
## Install

```bash
npm install @hanwha-ss1/plugin
npx cap sync
```

## Example

```javascript
import { HanwhaPlugin } from "@hanwha-ss1/plugin"

// 연락처 저장
await HanwhaPlugin.addContact({
  name: "이름님",
  phone: "010-2222-3333",
  email: "이메일",
  dept: "회사",
  ext: "내선"
})

// 스크린샷 방지
await HanwhaPlugin.setScreenCaptureDisabled({
  disabled: "true"
})
```

## API

<docgen-index>

* [`addListener(string, ...)`](#addlistenerstring)
* [`removeAllListeners()`](#removealllisteners)
* [Interfaces](#interfaces)

</docgen-index>

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

### addListener(string, ...)

```typescript
addListener(eventName: string, listenerFunc: (...args: any[]) => any) => Promise<PluginListenerHandle>
```

| Param              | Type                                    |
| ------------------ | --------------------------------------- |
| **`eventName`**    | <code>string</code>                     |
| **`listenerFunc`** | <code>(...args: any[]) =&gt; any</code> |

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

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


### removeAllListeners()

```typescript
removeAllListeners() => Promise<void>
```

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


### Interfaces


#### PluginListenerHandle

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

</docgen-api>
