Methode DocsView.setEnableDrives
Hier werden geteilte Ablagen und die darin enthaltenen Dateien angezeigt. Lesen Sie vor der Aktivierung die Dokumentation zur GoogleDrive API zum Aktivieren freigegebener Ablagen.
Wenn true
ausgewählt ist, sind nur geteilte Ablagen in der Ansicht enthalten.
Unterschrift
setEnableDrives(enabled: boolean): DocsView;
Details
Optional |
Nein |
Finale |
Nein |
Geschützt |
Nein |
Statisch |
Nein |
Parameter
Name |
Typ |
Optional |
Beschreibung |
enabled |
boolean |
Nein |
|
Gibt Folgendes zurück:
DocsView
Sofern nicht anders angegeben, sind die Inhalte dieser Seite unter der Creative Commons Attribution 4.0 License und Codebeispiele unter der Apache 2.0 License lizenziert. Weitere Informationen finden Sie in den Websiterichtlinien von Google Developers. Java ist eine eingetragene Marke von Oracle und/oder seinen Partnern.
Zuletzt aktualisiert: 2024-11-15 (UTC).
[null,null,["Zuletzt aktualisiert: 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"]]