阅读(1780) (0)

tt.makePhoneCall

2020-02-12 11:38:20 更新
基础库 1.0.0 开始支持本方法。

拨打电话。


参数

Object 类型,属性如下:

属性类型默认值必填说明最低支持版本
phoneNumberstring电话号码1.0.0
successfunction接口调用成功的回调函数1.0.0
failfunction接口调用失败的回调函数1.0.0
completefunction接口调用结束的回调函数(调用成功、失败都会执行)1.0.0


代码示例

tt.makePhoneCall({
  phoneNumber: "18888888888",
  success(res) {
    console.log(`makePhoneCall调用成功${res}`);
  },
  fail(res) {
    console.log(`makePhoneCall调用失败`);
  }
});