Class: Phone

Phone()

Functions to access phone functionality - dial a number and send an SMS.

Constructor

new Phone()

Source:

Methods

(static) this.dial(number, onSuccess, onFailure)

Dials a phone number on the device. On iPhone dialing a number makes the program exit and the phone program is launched with the number. The user have to confirm the call, then return back to the program. There are restrictions about special symbols like # when dialing programatically.
Parameters:
Name Type Description
number string Phone number to dial
onSuccess function Success function
onFailure function Failure function. Format: onFailure(errorCode, errorDescription)
Source:

(static) this.sendSMS(numbers, message, onSuccess, onFailure)

Presents a dialog, filled with the SMS information - numbers to send the message to and message itself. The user have to confirm the sending.
Parameters:
Name Type Description
numbers array Array of numbers for message to be sent to
message string Message body
onSuccess function Success function
onFailure function Failure function. Format: onFailure(errorCode, errorDescription)
Source:
Example
QBrowser.Phone.sendSMS(["123456","654321"], "Message body", PhoneSuccess, PhoneError);