
Mobile Widgets
Messaging Javascript library
Description
The Messaging class provides means to send an SMS or an MMS with a picture.
Since
1.4.8
New methods: startListeningSMS(), stopListeningSMS(), isPushSMSAvailable (), registerPushSMS (), unregisterPushSMS () and isRegisteredPushSMS().
Methods
bool isAvailable ():
Returns True if mobile sending SMS and MMS is supported.
bool sendSMS (String phoneNumber, String message):
Send a SMS. Returns true if successful, false on error.
bool sendMMS (String phoneNumber, String subject, String message, String imageUrl):
Send a MMS.
bool startListeningSMS (int port, String messageName):
Waiting for incoming SMS on specified port through a Message node with url "messageName". The data_changed MFString field of the message node will be update as follow:
- data_changed [0] : sender phone number
- data_changed [1] : reception port number
- data_changed [2] : content of the SMS
bool stopListeningSMS (int port):
Stop waiting for incoming SMS on specified port.
bool isPushSMSAvailable ():
Check if memo player supports push SMS
bool registerPushSMS (int port):
Register a port to wake up midlet on incoming SMS on specified port.
bool unregisterPushSMS (int port):
Register previously registered port.
bool isRegisteredPushSMS (int port):
Check if specified port is already registered.