feat(calldirectory): add log function (#2708)

* feat(calldirectory): add log function

* Update index.ts
This commit is contained in:
Niklas Merz 2018-09-15 10:43:11 +02:00 committed by Daniel Sogl
parent 22fd49b5d3
commit 9601a64227

View File

@ -6,6 +6,11 @@ export interface CallDirectoryItem {
number: string;
}
export interface CallDirectoryLog {
plugin: Array<string>;
extension: Array<string>;
}
/**
* @name Call Directory
* @description
@ -29,6 +34,10 @@ export interface CallDirectoryItem {
* .then(res: string) => console.log(res))
* .catch((error: any) => console.error(error));
* ```
*
* @Interfaces
* CallDirectoryItem
* CallDirectoryLog
*/
@Plugin({
pluginName: 'CallDirectory',
@ -97,4 +106,13 @@ export class CallDirectory extends IonicNativePlugin {
reloadExtension(): Promise<string> {
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;
}
}