روش DocsView.setEnableDrives
درایوهای مشترک و فایل های موجود در آنها را نشان می دهد. قبل از فعال کردن، برای فعال کردن درایوهای مشترک به اسناد GoogleDrive API مراجعه کنید.
امضا
setEnableDrives(enabled: boolean): DocsView;
جزئیات
اختیاری | خیر |
---|
نهایی | خیر |
---|
محافظت شده است | خیر |
---|
استاتیک | خیر |
---|
پارامترها
نام | تایپ کنید | اختیاری | توضیحات |
---|
enabled | boolean | خیر | |
برمی گرداند
DocsView
جز در مواردی که غیر از این ذکر شده باشد،محتوای این صفحه تحت مجوز Creative Commons Attribution 4.0 License است. نمونه کدها نیز دارای مجوز Apache 2.0 License است. برای اطلاع از جزئیات، به خطمشیهای سایت Google Developers مراجعه کنید. جاوا علامت تجاری ثبتشده Oracle و/یا شرکتهای وابسته به آن است.
تاریخ آخرین بهروزرسانی 2025-01-09 بهوقت ساعت هماهنگ جهانی.
[null,null,["تاریخ آخرین بهروزرسانی 2025-01-09 بهوقت ساعت هماهنگ جهانی."],[[["Displays shared drives and their files, requiring prior enabling as outlined in Google Drive API documentation."],["Controls view to include only shared drives if set to `true`."],["`setEnableDrives` function takes a boolean and customizes the DocsView to include or exclude shared drives."]]],["This documentation outlines how to display shared drives within a view. The `setEnableDrives` function, requiring a boolean input (`enabled`), controls the visibility of shared drives. When `enabled` is `true`, the view will display only shared drives; otherwise, it will not. Prior to enabling, refer to the Google Drive API documentation for enabling shared drives. The function returns a `DocsView` object, and its usage is not optional.\n"]]