Method View.setMimeTypes
Sets the MIME types included in the view. Use commas to separate MIME types if
more than one is required. If you don't set MIME types, files of all MIME types
are displayed in the view.
Signature
setMimeTypes(mimeTypes: string): DocsView;
Details
Optional |
No |
Final |
No |
Protected |
No |
Static |
No |
Parameters
Name |
Type |
Optional |
Description |
mimeTypes |
string |
No |
|
Returns
DocsView
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-17 UTC.
[null,null,["Last updated 2024-09-17 UTC."],[[["Defines the MIME types of files displayed in the view, using commas to separate multiple types."],["If MIME types are not specified, the view displays files of all types."],["`setMimeTypes` is a non-static, non-final, and unprotected method of the `DocsView` class."],["This method takes a single string parameter, `mimeTypes`, which represents the allowed file types."],["It returns a `DocsView` object, enabling method chaining."]]],[]]