DocsView.setEnableDrives yöntemi
Ortak Drive'ları ve bu Drive'larda bulunan dosyaları gösterir. Etkinleştirmeden önce ortak Drive'ları etkinleştirmeyle ilgili Google Drive API belgelerini inceleyin.
true
ise görünüme yalnızca ortak Drive'lar dahil edilir.
İmza
setEnableDrives(enabled: boolean): DocsView;
Ayrıntılar
İsteğe bağlı |
Hayır |
Final |
Hayır |
Korumalı |
Hayır |
Statik |
Hayır |
Parametreler
Ad |
Tür |
İsteğe bağlı |
Açıklama |
enabled |
boolean |
Hayır |
|
İadeler
DocsView
Aksi belirtilmediği sürece bu sayfanın içeriği Creative Commons Atıf 4.0 Lisansı altında ve kod örnekleri Apache 2.0 Lisansı altında lisanslanmıştır. Ayrıntılı bilgi için Google Developers Site Politikaları'na göz atın. Java, Oracle ve/veya satış ortaklarının tescilli ticari markasıdır.
Son güncelleme tarihi: 2024-11-15 UTC.
[null,null,["Son güncelleme tarihi: 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"]]