提交 1871a3ec 编写于 作者: inkwalk's avatar inkwalk

feat(App): makePhoneCall

上级 33093c45
import {
API_MAKE_PHONE_CALL,
API_TYPE_MAKE_PHONE_CALL,
defineAsyncApi,
MakePhoneCallProtocol,
} from '@dcloudio/uni-api'
export const makePhoneCall = defineAsyncApi<API_TYPE_MAKE_PHONE_CALL>(
API_MAKE_PHONE_CALL,
({ phoneNumber }, { resolve }) => {
plus.device.dial(phoneNumber)
return resolve()
},
MakePhoneCallProtocol
)
......@@ -6,6 +6,7 @@ export * from './device/vibrate'
export * from './device/accelerometer'
export * from './device/bluetooth'
export * from './device/ibeacon'
export * from './device/makePhoneCall'
export * from './media/getImageInfo'
export * from './media/getVideoInfo'
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册