Methode DocsView.setIncludeFolders
Ordner in den Ansichtselementen anzeigen Nicht mit setOwnedByMe
kombinieren. Wenn setIncludeFolders(true)
festgelegt ist, wird setOwnedByMe
ignoriert.
Wenn Sie diese Option nicht festlegen, werden Ordner nicht in der Ansicht angezeigt.
Unterschrift
setIncludeFolders(included: boolean): DocsView;
Details
Optional |
Nein |
Finale |
Nein |
Geschützt |
Nein |
Statisch |
Nein |
Parameter
Name |
Typ |
Optional |
Beschreibung |
included |
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-08 (UTC).
[null,null,["Zuletzt aktualisiert: 2024-11-08 (UTC)."],[[["The `setIncludeFolders` method controls the display of folders within the view items, and if set to `true`, it overrides the `setOwnedByMe` setting."],["By default, folders are not displayed in the view unless you explicitly enable them using this method."],["This method is a non-final, non-protected, and non-static member of the `DocsView` class and accepts a boolean parameter indicating whether to include folders."],["Utilizing `setIncludeFolders`, developers can manipulate the visibility of folders within the `DocsView` and ultimately refine the user's document browsing experience."]]],["The `setIncludeFolders(included: boolean)` method controls folder visibility in the view items. Setting `included` to `true` displays folders; otherwise, folders are hidden. When `setIncludeFolders(true)` is applied, the `setOwnedByMe` setting is disregarded. This method returns a `DocsView` object, is non-optional, and requires a boolean `included` parameter to function. It is not a final, protected, or static method.\n"]]