1.0.4 • Published 2 years ago

capacitor-plugin-phone-helper v1.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

capacitor-plugin-phone-call

a phone call plugin for Capacitor3, apply for IOS/Android

Install

npm install capacitor-plugin-phone-call
npx cap sync

eg:

import { PhoneCall } from "capacitor-plugin-phone-call";

PhoneCall.start({ phone: "10086" });

···

API

start(...)

start(options: PhoneCallOptions) => any
ParamType
optionsPhoneCallOptions

Returns: any


echo(...)

echo(options: { value: string; }) => any
ParamType
options{ value: string; }

Returns: any


detectCallState(...)

detectCallState(options: { action: string; }) => any

To enable / disable detection of calls options: { action: 'ACTIVATE' | 'DEACTIVATE' }

ParamType
options{ action: string; }

Returns: any


addListener(...)

addListener(eventName: 'callStateChange', listenerFunc: CallStateChangeListener) => Promise<PluginListenerHandle> & PluginListenerHandle
ParamType
eventName"callStateChange"
listenerFunc(status: PhoneState) => void

Returns: any


Interfaces

PhoneCallOptions

PropType
phonestring

SucessCallBack

PropType
msgstring

PluginListenerHandle

PropType
remove() => any
1.0.4

2 years ago

1.0.3

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago