Class DriveDataSourceSpec

DriveDataSourceSpec

Holds a set of DriveItemType objects that are displayed in a row.

constdriveDataSourceSpec=
CardService.newDriveDataSourceSpec()
.addItemType(CardService.DriveItemType.DOCUMENTS)
.addItemType(CardService.DriveItemType.FORMS);

Methods

MethodReturn typeBrief description
addItemType(driveItemType) DriveDataSourceSpec Adds a driveItemType to allowed item types list.

Detailed documentation

addItemType(driveItemType)

Adds a driveItemType to allowed item types list.

Parameters

NameTypeDescription
driveItemTypeDriveItemType The driveItemType to add.

Return

DriveDataSourceSpec — This object, for chaining.

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年12月03日 UTC.