capacitor-phone-logger
v0.0.3
Published
This Capacitor plugin is used to fetch recent phone logs from user's device
Downloads
10
Maintainers
Readme
@capacitor/phone-logger
This Capacitor plugin is used to fetch recent phone logs from user's device
Install
npm install @capacitor/phone-logger
npx cap syncAPI
echo(...)makeCall(...)requestPermissions()setDefaultDialer()getCallLogs()callComplete()addListener(string, ...)- Interfaces
echo(...)
echo(options: { value: string; }) => Promise<{ value: string; }>| Param | Type |
| ------------- | ------------------------------- |
| options | { value: string; } |
Returns: Promise<{ value: string; }>
makeCall(...)
makeCall(options: { phoneNumber: string; }) => Promise<void>| Param | Type |
| ------------- | ------------------------------------- |
| options | { phoneNumber: string; } |
requestPermissions()
requestPermissions() => Promise<void>setDefaultDialer()
setDefaultDialer() => Promise<void>getCallLogs()
getCallLogs() => Promise<{ logData: any[]; }>Returns: Promise<{ logData: any[]; }>
callComplete()
callComplete() => Promise<{ callStatus: boolean; }>Returns: Promise<{ callStatus: boolean; }>
addListener(string, ...)
addListener(eventName: string, listenerFunc: (data: any) => void) => Promise<PluginListenerHandle>| Param | Type |
| ------------------ | ----------------------------------- |
| eventName | string |
| listenerFunc | (data: any) => void |
Returns: Promise<PluginListenerHandle>
Interfaces
PluginListenerHandle
| Prop | Type |
| ------------ | ----------------------------------------- |
| remove | () => Promise<void> |
