Confirmed users
368
edits
(→Proposed API: add events) |
|||
| Line 17: | Line 17: | ||
navigator.sms returns an object with the following interface: | navigator.sms returns an object with the following interface: | ||
interface | interface SmsManager | ||
{ | { | ||
nsIDOMSmsRequest send(in DOMString number, in DOMString message); | nsIDOMSmsRequest send(in DOMString number, in DOMString message); | ||
| Line 31: | Line 31: | ||
* maybe ''delete'' shouldn't return a SMSRequest? | * maybe ''delete'' shouldn't return a SMSRequest? | ||
interface | interface SmsRequest | ||
{ | { | ||
readonly attribute unsigned short readyState; | readonly attribute unsigned short readyState; | ||
| Line 40: | Line 40: | ||
}; | }; | ||
interface SmsMessage | |||
interface | |||
{ | { | ||
readonly attribute long uuid; | readonly attribute long uuid; | ||
| Line 58: | Line 55: | ||
In addition of these interfaces, there is a new event: | In addition of these interfaces, there is a new event: | ||
interface | interface SmsEvent : nsIDOMEvent | ||
{ | { | ||
void initSmsEvent(in DOMString eventTypeArg, | void initSmsEvent(in DOMString eventTypeArg, | ||