Class Sms
Defined in: phonegap.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Sms()
This class provides access to the device SMS functionality.
|
Method Attributes | Method Name and Description |
---|---|
send(number, message, successCallback, errorCallback, options)
Sends an SMS message.
|
Method Detail
send(number, message, successCallback, errorCallback, options)
Sends an SMS message.
- Parameters:
- {Integer} number
- The phone number to send the message to.
- {String} message
- The contents of the SMS message to send.
- {Function} successCallback
- The function to call when the SMS message is sent.
- {Function} errorCallback
- The function to call when there is an error sending the SMS message.
- {PositionOptions} options
- The options for accessing the GPS location such as timeout and accuracy.