SMS
Provides static functions to send SMS messages
Code Example:
|
Supported Platform(s)
| - BlackBerry OS 5.0+ |
| - Ripple Emulator |
| API | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
|---|---|---|---|---|---|---|---|
| blackberry.message.sms.addReceiveListener | Y | Y | Y | Y | |||
| blackberry.message.sms.removeReceiveListener | Y | Y | Y | Y | |||
| blackberry.message.sms.send | Y | Y | Y | Y | |||
| isListeningForMessage | Y | Y | Y | Y |
Configuration Document Settings
|
To use all of the API described for this object, you must ensure the following settings are in your configuration document: |
|
You must declare the feature element(s) below in your configuration document: |
| Feature ID | BB5.0 | BB6.0 | BB7.0 | PB1.0 | PB2.0 | BB10 | Ripple |
|---|---|---|---|---|---|---|---|
| <feature id="blackberry.message.sms" /> | Y | Y | Y | Y |
| Permission Elements (PlayBook and BlackBerry 10+) |
|---|
| This API does not require a <permission> element to be declared in the configuration document of your BlackBerry WebWorks Application. |
Functions
static
void
blackberry.message.sms.addReceiveListener
(listener: function(message : String, sender : String, date : Date))
SMS listener to receive a message when it arrives
| Supported Platforms | |
|---|---|
| - BlackBerry OS 5.0+ | |
| - Ripple Emulator | |
| Parameters | |
|---|---|
| listener |
Callback function that is invoked when a new SMS message is received. Overwrites the previous callback.
message: The content of the SMS message. sender: The sender of the SMS message. date: The date of the SMS message. |
Properties
Documentation generated by JsDoc Toolkit 2.4.0 on Sun Dec 30 2012 18:15:44 GMT-0500 (EST)