docs(calldirectory): fix typo (#2478)

I have spotted some typos and added an example for reload.
This commit is contained in:
Niklas Merz 2018-04-24 11:38:02 +02:00 committed by Daniel Sogl
parent 1bfe82959b
commit 50c8c154e3

View File

@ -9,7 +9,7 @@ export interface CallDirectoryItem {
/** /**
* @name Call Directory * @name Call Directory
* @description * @description
* This plugin can add phone numbers to an Callkit call directory extension. Call `reloadExtension` after using `addentIfication` and `removeIdentification` * This plugin can add phone numbers to an Callkit call directory extension. Call `reloadExtension` after using `addIdentification` and `removeIdentification`
* to process the changes in the call directory extension. * to process the changes in the call directory extension.
* *
* @usage * @usage
@ -19,14 +19,15 @@ export interface CallDirectoryItem {
* *
* constructor(private callDirectory: CallDirectory) { } * constructor(private callDirectory: CallDirectory) { }
* *
* ...
*
* *
* let items = [{label: "Hello", number: "123"}]; * let items = [{label: "Hello", number: "123"}];
* this.callDirectory.addIdentification(items) * this.callDirectory.addIdentification(items)
* .then((res: any) => console.log(res)) * .then((res: any) => console.log(res))
* .catch((error: any) => console.error(error)); * .catch((error: any) => console.error(error));
* *
* this.callDirectory.reloadExtension()
* .then(res: string) => console.log(res))
* .catch((error: any) => console.error(error));
* ``` * ```
*/ */
@Plugin({ @Plugin({