الطريقة DocsView.setMode
يحدد الوضع الذي سيستخدمه العرض لعرض المستندات.
في حال استخدام نطاق غير https://www.googleapis.com/auth/drive
أو
https://www.googleapis.com/auth/drive.readonly
، يُنصح باستخدام
DocsViewMode.LIST
لأنّ المستخدم لم يمنح إذن الوصول إلى الصور المصغّرة.
التوقيع
setMode(mode: DocsViewMode): DocsView;
التفاصيل
اختياري |
لا |
النهائي |
لا |
الحماية |
لا |
ثابت |
لا |
المعلمات
المرتجعات
DocsView
إنّ محتوى هذه الصفحة مرخّص بموجب ترخيص Creative Commons Attribution 4.0 ما لم يُنصّ على خلاف ذلك، ونماذج الرموز مرخّصة بموجب ترخيص Apache 2.0. للاطّلاع على التفاصيل، يُرجى مراجعة سياسات موقع Google Developers. إنّ Java هي علامة تجارية مسجَّلة لشركة Oracle و/أو شركائها التابعين.
تاريخ التعديل الأخير: 2024-11-08 (حسب التوقيت العالمي المتفَّق عليه)
[null,null,["تاريخ التعديل الأخير: 2024-11-08 (حسب التوقيت العالمي المتفَّق عليه)"],[[["Selects the display mode for documents within the view, using either list or grid view."],["When using restricted scopes, it's advisable to utilize `DocsViewMode.LIST` due to potential limitations on thumbnail access."],["This method is neither optional, final, protected, nor static."],["It accepts a single parameter, 'mode', to specify the desired display mode (list or grid)."],["Upon execution, it returns an updated DocsView object reflecting the mode change."]]],["The `setMode` function determines how documents are displayed, accepting a `DocsViewMode` parameter. Using scopes other than `drive` or `drive.readonly` suggests using `DocsViewMode.LIST` due to limited access. This function is not optional, final, protected, or static. It returns a `DocsView` object, and the selected `mode` dictates the presentation style of documents within the view.\n"]]