Skip to content

Commit

Permalink
feat(calldirectory): add log function (#2708)
Browse files Browse the repository at this point in the history
* feat(calldirectory): add log function

* Update index.ts
  • Loading branch information
NiklasMerz authored and danielsogl committed Sep 15, 2018
1 parent 22fd49b commit 9601a64
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions src/@ionic-native/plugins/call-directory/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,11 @@ export interface CallDirectoryItem {
number: string;
}

export interface CallDirectoryLog {
plugin: Array<string>;
extension: Array<string>;
}

/**
* @name Call Directory
* @description
Expand All @@ -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',
Expand Down Expand Up @@ -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;
}
}

0 comments on commit 9601a64

Please sign in to comment.