mirror of
https://github.com/danielsogl/awesome-cordova-plugins.git
synced 2025-02-22 01:19:36 +08:00
docs(call-number): add return values to example
This commit is contained in:
parent
f11be24f74
commit
ac303d6f7f
@ -1,5 +1,6 @@
|
|||||||
import { Injectable } from '@angular/core';
|
import { Injectable } from '@angular/core';
|
||||||
import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
import { Cordova, IonicNativePlugin, Plugin } from '@ionic-native/core';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @name Call Number
|
* @name Call Number
|
||||||
* @description
|
* @description
|
||||||
@ -16,8 +17,8 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
|||||||
*
|
*
|
||||||
*
|
*
|
||||||
* this.callNumber.callNumber("18001010101", true)
|
* this.callNumber.callNumber("18001010101", true)
|
||||||
* .then(() => console.log('Launched dialer!'))
|
* .then(res => console.log('Launched dialer!', res))
|
||||||
* .catch(() => console.log('Error launching dialer'));
|
* .catch(err => console.log('Error launching dialer', err));
|
||||||
*
|
*
|
||||||
* ```
|
* ```
|
||||||
*/
|
*/
|
||||||
@ -30,7 +31,6 @@ import { Plugin, Cordova, IonicNativePlugin } from '@ionic-native/core';
|
|||||||
})
|
})
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class CallNumber extends IonicNativePlugin {
|
export class CallNumber extends IonicNativePlugin {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Calls a phone number
|
* Calls a phone number
|
||||||
* @param numberToCall {string} The phone number to call as a string
|
* @param numberToCall {string} The phone number to call as a string
|
||||||
|
Loading…
Reference in New Issue
Block a user