השיטה DocsView.setEnableDrives
כאן מוצגות תיקיות האחסון השיתופי והקבצים שהן מכילות. לפני ההפעלה, כדאי לעיין במסמכי התיעוד של GoogleDrive API להפעלת תיקיות אחסון שיתופי.
אם הערך הוא true
, רק תיקיות אחסון שיתופי ייכללו בתצוגה.
חתימה
setEnableDrives(enabled: boolean): DocsView;
פרטים
אופציונלי |
לא |
גמר |
לא |
מוגן |
לא |
סטטי |
לא |
פרמטרים
שם |
סוג |
אופציונלי |
תיאור |
enabled |
boolean |
לא |
|
החזרות
DocsView
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-11-15 (שעון UTC).
[null,null,["עדכון אחרון: 2024-11-15 (שעון UTC)."],[[["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"]]