روش View.setMimeTypes
انواع MIME موجود در نما را تنظیم می کند. اگر بیش از یک مورد نیاز است، از کاما برای جدا کردن انواع MIME استفاده کنید. اگر انواع MIME را تنظیم نکنید، فایلهای همه انواع MIME در نما نمایش داده میشوند.
امضا
setMimeTypes(mimeTypes: string): DocsView;
جزئیات
اختیاری | خیر |
---|
نهایی | خیر |
---|
محافظت شده است | خیر |
---|
استاتیک | خیر |
---|
پارامترها
نام | تایپ کنید | اختیاری | توضیحات |
---|
mimeTypes | string | خیر | |
برمی گرداند
DocsView
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2024-11-11 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2024-11-11 بهوقت ساعت هماهنگ جهانی."],[[["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."]]],["The `setMimeTypes` function configures the allowed MIME types for a view. It accepts a comma-separated string of MIME types. If no MIME types are specified, the view will display files of all MIME types. This function requires a `mimeTypes` string parameter and returns a `DocsView` object. The function is neither optional, final, protected, nor static.\n"]]