`onFileDownload` is called with the URL that you can use to download the file. When RNCWebView detects that the HTTP response should result in a file download, `onFileDownload` is called. The client can then provide code to download the file. RNCWebView determines that a file download should take place if either of the following is true: 1. The HTTP response contains a `Content-Disposition` header that is of type 'attachment' 2. The MIME type of the response cannot be rendered by the iOS WebView
|
||
67 | 67 |
|
68 | 68 |
|
69 | 69 |
|
70 |
|
|
71 |
|
|
70 | 72 |
|
71 | 73 |
|
72 | 74 |
|
|
||
973 | 975 |
|
974 | 976 |
|
975 | 977 |
|
978 |
|
|
976 | 979 |
|
977 | 980 |
|
978 | 981 |
|
979 | 982 |
|
980 | 983 |
|
981 | 984 |
|
982 |
|
|
983 |
|
|
985 |
|
|
986 |
|
|
984 | 987 |
|
985 | 988 |
|
986 | 989 |
|
987 | 990 |
|
988 |
|
|
991 |
|
|
992 |
|
|
993 |
|
|
994 |
|
|
995 |
|
|
996 |
|
|
997 |
|
|
998 |
|
|
999 |
|
|
1000 |
|
|
1001 |
|
|
1002 |
|
|
1003 |
|
|
1004 |
|
|
1005 |
|
|
1006 |
|
|
1007 |
|
|
1008 |
|
|
989 | 1009 |
|
990 | 1010 |
|
991 |
|
|
1011 |
|
|
992 | 1012 |
|
993 |
|
|
1013 |
|
|
994 | 1014 |
|
995 | 1015 |
|
996 | 1016 |
|
|
||
34 | 34 |
|
35 | 35 |
|
36 | 36 |
|
37 |
|
|
37 | 38 |
|
38 | 39 |
|
39 | 40 |
|
|
||
226 | 226 |
|
227 | 227 |
|
228 | 228 |
|
229 |
|
|
229 |
|
|
230 |
|
|
231 |
|
|
232 |
|
|
233 |
|
|
234 |
|
|
235 |
|
|
236 |
|
|
237 |
|
|
238 |
|
|
239 |
|
|
240 |
|
|
241 |
|
|
242 |
|
|
243 |
|
|
230 | 244 |
|
231 |
|
|
245 |
|
|
232 | 246 |
|
233 | 247 |
|
234 | 248 |
|
|
||
237 | 251 |
|
238 | 252 |
|
239 | 253 |
|
240 |
|
|
254 |
|
|
255 |
|
|
241 | 256 |
|
242 | 257 |
|
243 | 258 |
|
|
||
65 | 65 |
|
66 | 66 |
|
67 | 67 |
|
68 |
|
|
68 | 69 |
|
69 | 70 |
|
70 | 71 |
|
|
||
1138 | 1139 |
|
1139 | 1140 |
|
1140 | 1141 |
|
1142 |
|
|
1143 |
|
|
1144 |
|
|
1145 |
|
|
1146 |
|
|
1147 |
|
|
1148 |
|
|
1149 |
|
|
1150 |
|
|
1151 |
|
|
1152 |
|
|
1153 |
|
|
1154 |
|
|
1155 |
|
|
1156 |
|
|
1157 |
|
|
1158 |
|
|
1159 |
|
|
1160 |
|
|
1161 |
|
|
1162 |
|
|
1163 |
|
|
1164 |
|
|
1165 |
|
|
1166 |
|
|
1167 |
|
|
1168 |
|
|
1169 |
|
|
1170 |
|
|
1171 |
|
|
1172 |
|
|
1173 |
|
|
1141 | 1174 |
|
1142 | 1175 |
|
1143 | 1176 |
|
|
||
13 | 13 |
|
14 | 14 |
|
15 | 15 |
|
16 |
|
|
16 | 17 |
|
17 | 18 |
|
18 | 19 |
|
|
||
41 | 42 |
|
42 | 43 |
|
43 | 44 |
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
44 | 53 |
|
45 | 54 |
|
46 | 55 |
|
|
||
115 | 124 |
|
116 | 125 |
|
117 | 126 |
|
127 |
|
|
128 |
|
|
129 |
|
|
130 |
|
|
131 |
|
|
118 | 132 |
|
119 | 133 |
|
120 | 134 |
|
|
||
1 |
|
|
2 |
|
|
3 |
|
|
4 |
|
|
5 |
|
|
6 |
|
|
7 |
|
|
8 |
|
|
9 |
|
|
10 |
|
|
11 |
|
|
12 |
|
|
13 |
|
|
14 |
|
|
15 |
|
|
16 |
|
|
17 |
|
|
18 |
|
|
19 |
|
|
20 |
|
|
21 |
|
|
22 |
|
|
23 |
|
|
24 |
|
|
25 |
|
|
26 |
|
|
27 |
|
|
28 |
|
|
29 |
|
|
30 |
|
|
31 |
|
|
32 |
|
|
33 |
|
|
34 |
|
|
35 |
|
|
36 |
|
|
37 |
|
|
38 |
|
|
39 |
|
|
40 |
|
|
41 |
|
|
42 |
|
|
43 |
|
|
44 |
|
|
45 |
|
|
46 |
|
|
47 |
|
|
48 |
|
|
49 |
|
|
50 |
|
|
51 |
|
|
52 |
|
|
53 |
|
|
54 |
|
|
55 |
|
|
||
182 | 182 |
|
183 | 183 |
|
184 | 184 |
|
185 |
|
|
185 |
|
|
186 | 186 |
|
187 | 187 |
|
188 | 188 |
|
|
||
326 | 326 |
|
327 | 327 |
|
328 | 328 |
|
329 |
|
|
329 |
|
|
330 | 330 |
|
331 | 331 |
|
332 | 332 |
|
|
||
339 | 339 |
|
340 | 340 |
|
341 | 341 |
|
342 |
|
|
342 |
|
|
343 | 343 |
|
344 | 344 |
|
|
||
2 | 2 |
|
3 | 3 |
|
4 | 4 |
|
5 |
|
|
5 |
|
|
6 | 6 |
|
7 | 7 |
|
8 | 8 |
|
|
||
340 | 340 |
|
341 | 341 |
|
342 | 342 |
|
343 |
|
|
343 | 344 |
|
344 | 345 |
|
345 | 346 |
|
|
||
113 | 113 |
|
114 | 114 |
|
115 | 115 |
|
116 |
|
|
117 |
|
|
118 |
|
|
119 |
|
|
116 | 120 |
|
117 | 121 |
|
118 | 122 |
|
|
||
141 | 145 |
|
142 | 146 |
|
143 | 147 |
|
148 |
|
|
149 |
|
|
144 | 150 |
|
145 | 151 |
|
146 | 152 |
|
|
||
302 | 308 |
|
303 | 309 |
|
304 | 310 |
|
311 |
|
|
305 | 312 |
|
306 | 313 |
|
307 | 314 |
|
|
||
512 | 519 |
|
513 | 520 |
|
514 | 521 |
|
522 |
|
|
523 |
|
|
524 |
|
|
525 |
|
|
526 |
|
|
527 |
|
|
528 |
|
|
529 |
|
|
530 |
|
|
531 |
|
|
532 |
|
|
533 |
|
|
534 |
|
|
535 |
|
|
536 |
|
|
537 |
|
|
538 |
|
|
539 |
|
|
515 | 540 |
|
516 | 541 |
|
517 | 542 |
|
|
||
1502 | 1502 |
|
1503 | 1503 |
|
1504 | 1504 |
|
1505 |
|
|
1506 |
|
|
1507 |
|
|
1508 |
|
|
1509 |
|
|
1510 | 1505 |
|
1511 | 1506 |
|
1512 | 1507 |
|
|
||
10159 | 10154 |
|
10160 | 10155 |
|
10161 | 10156 |
|
10162 |
|
|
10163 |
|
|
10164 |
|
|
10165 |
|
|
10166 |
|
|
10167 | 10157 |
|
10168 | 10158 |
|
10169 | 10159 |
|