This API is available on Firefox OS for internal applications only.
Summary
The getSegmentInfoForText
method is used to get the information necessary to create a multi-part SMS for a given text.
Note: Starting with Firefox OS 1.2, this method has become asychronous and will return a DOMRequest
object instead of a direct MozSmsSegmentInfo
object.
Syntax
var segments = navigator.mozMobileMessage.getSegmentInfoForText(text);
Parameters
text
- A string representing the text to send as a potential multi-part SMS.
Return
Before Firefox OS 1.2: A MozSmsSegmentInfo
object with all the necessary information about the text.
Since FIrefox OS 1.2: A DOMRequest
object to handle the success or error of the operation. In case of success the request's result
is a MozSmsSegmentInfo
object with all the necessary information about the text.
Specifications
This is a non-standard implementation, but it is discussed at W3C as part of the System Application Working Group.
Specification | Status | Comment |
---|---|---|
Messaging API | Editor's Draft | Editor Draft (WIP). |
Browser compatibility
For obvious reasons, support is primarily expected on mobile browsers.
Feature | Chrome | Firefox (Gecko) | Internet Explorer | Opera | Safari |
---|---|---|---|---|---|
Basic support | No support | No support | No support | No support | No support |
Feature | Android | Firefox Mobile (Gecko) | IE Mobile | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|
Basic support | No support | 12.0 (12.0) Moz | No support | No support | No support |