English
Dial number.
OBJECT parameter description
Parameter name | Type | Required | Instruction |
---|---|---|---|
phoneNumber | String | Yes | Phone number to call |
success | Function | No | Callback for successful interface calling |
fail | Function | No | Callback function for failed interface calling |
complete | Function | No | Callback function for closed interface calling (available both for successful and failed calling) |
Example
uni.makePhoneCall({
phoneNumber: '114' //仅为示例
});
Note: App-side extended documentation on phone text messages
<uses-permission android:name="android.permission.CALL_PHONE"/>