my.makePhoneCall(OBJECT)
Note: This interface is only supported in mPaaS 10.1.32 and later versions.
Make a phone call.
Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| number | String | Yes | Phone muber |
Sample code
// API-DEMO page/API/make-phone-call/make-phone-call.json{"defaultTitle": "Make phone call"}
<!-- API-DEMO page/API/make-phone-call/make-phone-call.axml--><view class="page"><view class="page-section"><view class="page-section-title">my.makePhoneCall</view><view class="page-section-btns"><view onTap="makePhoneCall">Make phone call</view></view></view></view>
// API-DEMO page/API/make-phone-call/make-phone-call.jsPage({makePhoneCall() {my.makePhoneCall({ number: '95888' });},});