mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-03-17 00:51:07 +08:00
feat(calldirectory): add log function (#2708)
* feat(calldirectory): add log function * Update index.ts
This commit is contained in:
parent
22fd49b5d3
commit
9601a64227
@ -6,6 +6,11 @@ export interface CallDirectoryItem {
|
|||||||
number: string;
|
number: string;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface CallDirectoryLog {
|
||||||
|
plugin: Array<string>;
|
||||||
|
extension: Array<string>;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Call Directory
|
* @name Call Directory
|
||||||
* @description
|
* @description
|
||||||
@ -29,6 +34,10 @@ export interface CallDirectoryItem {
|
|||||||
* .then(res: string) => console.log(res))
|
* .then(res: string) => console.log(res))
|
||||||
* .catch((error: any) => console.error(error));
|
* .catch((error: any) => console.error(error));
|
||||||
* ```
|
* ```
|
||||||
|
*
|
||||||
|
* @Interfaces
|
||||||
|
* CallDirectoryItem
|
||||||
|
* CallDirectoryLog
|
||||||
*/
|
*/
|
||||||
@Plugin({
|
@Plugin({
|
||||||
pluginName: 'CallDirectory',
|
pluginName: 'CallDirectory',
|
||||||
@ -97,4 +106,13 @@ export class CallDirectory extends IonicNativePlugin {
|
|||||||
reloadExtension(): Promise<string> {
|
reloadExtension(): Promise<string> {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Get log from plugin and call directory extension
|
||||||
|
* @return {Promise<CallDirectoryLog>} Returns a promise with an object of log messages
|
||||||
|
*/
|
||||||
|
@Cordova()
|
||||||
|
getLog(): Promise<CallDirectoryLog> {
|
||||||
|
return;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user