nsISupports
Last changed in Gecko 15.0 (Firefox 15.0 / Thunderbird 15.0 / SeaMonkey 2.12)Implemented by: @mozilla.org/sms/smsservice;1. To create an instance, use:
var smsService = Components.classes["@mozilla.org/sms/smsservice;1"]
.createInstance(Components.interfaces.nsISmsService);
[implicit_jscontext] nsIDOMMozSmsMessage createSmsMessage(in long id, in DOMString delivery, in DOMString sender, in DOMString receiver, in DOMString body, in jsval timestamp, in bool read ); |
unsigned short getNumberOfMessagesForText(in DOMString text); |
boolean hasSupport(); |
void send(in DOMString number, in DOMString message, in long requestId, [optional] in unsigned long long processId); |
[implicit_jscontext] nsIDOMMozSmsMessage createSmsMessage( in long id, in DOMString delivery, in DOMString sender, in DOMString receiver, in DOMString body, in jsval timestamp, in bool read );
iddeliveryDOMString which can either be "received" or "sent" and is representing the way the SMS was delivered.senderDOMString with the name of the sender.receiverDOMString with the name of the receiver.bodyDOMString with the text of the message.timestampDate object with the timestamp of the message.read unsigned short getNumberOfMessagesForText( in DOMString text );
textDOMString text to check.The number of multi-part SMS needed for a given text (160 characters for one SMS).
Checks if the current platform has SMS support.
boolean hasSupport();
Boolean.
void send(
in DOMString number,
in DOMString message,
in long requestId,
in unsigned long long processId Optional
);
numberDOMString with a telephone number to send to.messageDOMString with the text message.requestIdprocessId Optional