Event handler for when a message is deleted.
Event handler for when a message delivery fails.
Event handler for when a message is successfully delivered.
Event handler for when a message send fails.
Event handler for when a read report fails.
Event handler for when a read report is successfully sent/received.
Event handler for when a message is received.
Event handler for when a message is being retrieved.
Event handler for when a message is being sent.
Event handler for when a message is successfully sent.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsDeletes a message by its ID.
The ID of the message to delete.
Deletes a specific SMS message.
The SMS message object to delete.
Deletes a specific MMS message.
The MMS message object to delete.
Deletes a list of messages.
An array of message IDs or message objects.
The dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
Retrieves messages matching the specified filter.
Optionalfilter: MobileMessageFilterThe filter to apply.
Optionalreverse: booleanWhether to return messages in reverse order.
Calculates the number of segments required for a given text.
The text to analyze.
Gets the SMS Center (SMSC) address.
OptionalserviceId: numberThe service ID to query.
Marks a message as read or unread.
The ID of the message.
True to mark as read, false to mark as unread.
OptionalsendReadReport: booleanWhether to send a read report.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptionsRetrieves an MMS message by its ID.
The ID of the MMS message.
Retrieves the content of a specific MMS message.
The MMS message object.
Sends an SMS message to a single recipient.
The recipient's number.
The message body.
OptionalsendParameters: SmsSendParametersOptional parameters for sending.
Sends an SMS message to multiple recipients.
The recipients' numbers.
The message body.
OptionalsendParameters: SmsSendParametersOptional parameters for sending.
Sends an MMS message.
Optionalparameters: MmsParametersThe MMS parameters including receivers and attachments.
OptionalsendParameters: MmsSendParametersOptional parameters for sending.
Sets the SMS Center (SMSC) address.
OptionalsmscAddress: SmscAddressThe SMSC address to set.
OptionalserviceId: numberThe service ID to set for.
Preference
dom.sms.enabled
Permissions
sms
Available
CertifiedApps