Method DocsView.setFileIds
Sets the file IDs included in the view.
Signature
setFileIds(fileIds: string): DocsView;
Details
Optional |
No |
Final |
No |
Protected |
No |
Static |
No |
Parameters
Name |
Type |
Optional |
Description |
fileIds
|
string
|
No
|
A string of file IDs. Use commas to
separate file IDs if setting more than
one. If you include the file ID of a file
that the user doesn't have access to, the
file is excluded from the view. |
Returns
DocsView
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-21 UTC.
[null,null,["Last updated 2025-01-21 UTC."],[[["`setFileIds` is a function that sets the file IDs to be included in a `DocsView`."],["The `setFileIds` function takes a mandatory string parameter `fileIds`, which can include multiple comma-separated file IDs."],["If a file ID specified in `fileIds` is not accessible to the user, that file will be excluded from the `DocsView`."],["The `setFileIds` function returns a `DocsView` object."]]],[]]