OLD | NEW |
---|---|
1 <h1 id="file_handlers">Manifest - File Handlers</h1> | 1 <h1 id="file_handlers">Manifest - File Handlers</h1> |
benwells
2015/05/08 03:18:08
Is this meant to be the app file handler documenta
mtomasz
2015/05/08 09:07:20
Accidental change. Reverted.
| |
2 | 2 |
3 <p> | 3 <p> |
4 Used by <a href="../app_lifecycle#eventpage">packaged apps</a> | 4 Used by <a href="../app_lifecycle#eventpage">packaged apps</a> |
5 to specify what types of files the app can handle. An app can have multiple | 5 to specify what types of files the app can handle. An app can have multiple |
6 <code>file_handlers</code>, with each one having an identifier, a list of MIME | 6 <code>file_handlers</code>, with each one having an identifier, a list of MIME |
7 types and/or a list of file extensions that can be handled. | 7 types and/or a list of file extensions that can be handled. |
8 The app can handle a file if it either has a matching file extension or | 8 The app can handle a file if it either has a matching file extension or |
9 has a matching MIME type. | 9 has a matching MIME type. |
10 You can use a wildcard <code>"*"</code> in <code>types</code> or | 10 You can use a wildcard <code>"*"</code> in <code>types</code> or |
11 <code>extensions</code> to indicate that the app can handle any file type or | 11 <code>extensions</code> to indicate that the app can handle any file type or |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
48 compatibility, <code>title</code> should always be the name of the app. | 48 compatibility, <code>title</code> should always be the name of the app. |
49 </p> | 49 </p> |
50 | 50 |
51 <p> | 51 <p> |
52 To handle files, apps also need to declare the $(ref:fileSystem) | 52 To handle files, apps also need to declare the $(ref:fileSystem) |
53 permission. Apps can then be passed files in the $(ref:app.runtime.onLaunched) | 53 permission. Apps can then be passed files in the $(ref:app.runtime.onLaunched) |
54 event - either from the system | 54 event - either from the system |
55 file manager (currently supported on Chrome OS only) or by providing | 55 file manager (currently supported on Chrome OS only) or by providing |
56 a path on the <a href="../first_app#open">command line</a>. | 56 a path on the <a href="../first_app#open">command line</a>. |
57 </p> | 57 </p> |
OLD | NEW |