@hanwha-ss1/plugin
v0.5.3
Published
Plugin
Downloads
475
Readme
@hanwha-ss1/plugin
Install
npm install @hanwha-ss1/plugin
npx cap sync
Example
import { HanwhaPlugin } from "@hanwha-ss1/plugin"
// 앱 실행 (Only: Android)
await HanwhaPlugin.executeApp({
package: "패키지명"
})
// 연락처 저장
await HanwhaPlugin.addContact({
name: "이름님",
phone: "010-2222-3333",
email: "이메일",
dept: "회사",
ext: "내선"
})
// 모달
HanwhaPlugin.open({url: "{{url}}", isCloseBtn:true, clear: true, ext: false})
// 생체인증
await HanwhaPlugin.auth()
API
addListener(string, ...)
addListener(eventName: string, listenerFunc: (...args: any[]) => any) => Promise<PluginListenerHandle>
| Param | Type |
| ------------------ | --------------------------------------- |
| eventName
| string |
| listenerFunc
| (...args: any[]) => any |
Returns: Promise<PluginListenerHandle>
removeAllListeners()
removeAllListeners() => Promise<void>
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove
| () => Promise<void> |