@@ -1102,6 +1102,26 @@ <h3>Steps</h3>
1102
1102
</ ol >
1103
1103
</ ol >
1104
1104
1105
+ < p >
1106
+ An example of manual fetch of an MMS is provided below:
1107
+
1108
+ < pre class ="example highlight ">
1109
+ var message = receivedMessageEvent.message
1110
+ if (message.state == 'not-downloaded') {
1111
+ var req = navigator.messaging.mms.fetch (message.id)
1112
+ req.onprogress = function() {
1113
+ window.console.log(e.loaded + ' bytes out of ' + e.total + '
1114
+ downloaded ...');
1115
+ }
1116
+ req.onsuccess = function() {
1117
+ window.console.log('Message Fetched!');
1118
+ }
1119
+ req.onerror = function(e) {
1120
+ window.console.error(e.target.error.name);
1121
+ }
1122
+ </ pre >
1123
+
1124
+
1105
1125
< p > The User Agent MAY fire additional < code > ProgressEvents</ code >
1106
1126
[[!PROGRESS-EVENTS]] on the < code > MessagingRequest</ code > object associated to
1107
1127
the sending and fetching of an MMS message, in order to report on the progress
@@ -1136,6 +1156,11 @@ <h2><a>MessagingRequest</a> Interface</h2>
1136
1156
< code > MessagingRequest</ code > object, e.g. < code > delete</ code > method of the
1137
1157
< code > Messaging</ code > object.</ dd >
1138
1158
1159
+ < dt class ="no-docs ">
1160
+ attribute EventHandler onprogress
1161
+ </ dt >
1162
+ < dd > </ dd >
1163
+
1139
1164
< dt class ="no-docs ">
1140
1165
attribute EventHandler onsuccess
1141
1166
</ dt >
@@ -1479,7 +1504,7 @@ <h2><a>MessagingCursor</a> Interface</h2>
1479
1504
< h2 > < a > MessagingEvent</ a > Interface</ h2 >
1480
1505
< p > The < a > MessagingEvent</ a > interface represents events related to a message
1481
1506
sent or received.
1482
- < dl title ="[NoInterfaceObject] interface MessagingEvent "
1507
+ < dl title ="[NoInterfaceObject] interface MessagingEvent : ProgressEvent "
1483
1508
class ="idl ">
1484
1509
< dt > readonly attribute (SmsMessage or MmsMessage) message</ dt >
1485
1510
< dd > MUST return the < code > SmsMessage</ code > or < code > MmsMessage</ code >
0 commit comments