方法 DocsView.setFileIds
使用集合让一切井井有条
根据您的偏好保存内容并对其进行分类。
设置视图中包含的文件 ID。
请勿将此设置与 setEnableDrives
或 setParent
结合使用。对此函数的调用会替换之前对 setEnableDrives
或 setParent
的调用。
签名
setFileIds(fileIds: string): DocsView;
详细信息
参数
名称 |
类型 |
可选 |
说明 |
fileIds
|
string
|
否
|
一串文件 ID。如果设置多个文件 ID,请使用英文逗号进行分隔。如果您添加了用户无权访问的文件的文件 ID,该文件将从视图中排除。 |
返回
DocsView
如未另行说明,那么本页面中的内容已根据知识共享署名 4.0 许可获得了许可,并且代码示例已根据 Apache 2.0 许可获得了许可。有关详情,请参阅 Google 开发者网站政策。Java 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2025-07-25。
[null,null,["最后更新时间 (UTC):2025-07-25。"],[],[],null,["# Method DocsView.setFileIds\n\nSets the file IDs included in the view.\n\nDon't combine this setting with `setEnableDrives` or `setParent`. Calls to this\nfunction override previous calls to `setEnableDrives` or `setParent`.\n\nSignature\n---------\n\n setFileIds(fileIds: string): DocsView;\n\nDetails\n-------\n\n| Optional | No |\n| Final | No |\n| Protected | No |\n| Static | No |\n|-----------|----|\n\nParameters\n----------\n\n| Name | Type | Optional | Description |\n|-----------|----------|----------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `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. |\n\nReturns\n-------\n\n[DocsView](./picker.docsview)"]]