השיטה 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 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-08 (שעון UTC)."],[[["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"]]