All Products
Search
Document Center

Make phone call

Last Updated: Feb 04, 2021

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

  1. // API-DEMO page/API/make-phone-call/make-phone-call.json
  2. {
  3. "defaultTitle": "Make phone call"
  4. }
  1. <!-- API-DEMO page/API/make-phone-call/make-phone-call.axml-->
  2. <view class="page">
  3. <view class="page-section">
  4. <view class="page-section-title">my.makePhoneCall</view>
  5. <view class="page-section-btns">
  6. <view onTap="makePhoneCall">Make phone call</view>
  7. </view>
  8. </view>
  9. </view>
  1. // API-DEMO page/API/make-phone-call/make-phone-call.js
  2. Page({
  3. makePhoneCall() {
  4. my.makePhoneCall({ number: '95888' });
  5. },
  6. });