পদ্ধতি 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 সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2024-11-11 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2024-11-11 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."]]],["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"]]