PickerBuilderis used to createPickerobjects. Except where noted otherwise, the return type of methods below is of typePickerBuilder, allowing you to chain one call after another.
Featureis an enumerated type, for turning on/off features for various views. Use these values in calls toPickerBuilder.enableFeatureandPickerBuilder.disableFeature.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-06-20 UTC."],[],[],null,["# Resource summary for Google Picker API\n\nThe Google Picker API uses a builder pattern with\n[`PickerBuilder`](./picker.pickerbuilder) and [`Picker`](./picker.picker). \n\n const picker = new google.picker.PickerBuilder()\n .setOAuthtoken('TOKEN_FOR_USER')\n .setAppId('1234567890') // Cloud Project number\n .addView(google.picker.ViewId.DOCS)\n .setCallback((data) =\u003e {\n console.log(data);\n })\n .build();\n\n picker.setVisible(true);\n\nClasses\n-------\n\n| Name | Description |\n|---------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`DocsUploadView`](./picker.docsuploadview) | Use `DocsUploadView` to upload files to Google Drive. |\n| [`DocsView`](./picker.docsview) | Use `DocsView` to select files from Google Drive. |\n| [`Picker`](./picker.picker) | `Picker` is the top level object representing the UI action with the user. These objects are not created directly, but instead use the `PickerBuilder` class. |\n| [`PickerBuilder`](./picker.pickerbuilder) | `PickerBuilder` is used to create `Picker` objects. Except where noted otherwise, the return type of methods below is of type `PickerBuilder`, allowing you to chain one call after another. |\n| [`ResourceId`](./picker.resourceid) | `ResourceId` is a utility class for generating resource IDs for documents. |\n| [`View`](./picker.view) | An abstract class for all views. |\n| [`ViewGroup`](./picker.viewgroup) | A `ViewGroup` is a visual grouping of views in the navigation pane. |\n\nEnums\n-----\n\n| Name | Description |\n|-----------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [`Action`](./picker.action) | The action type for the `ResponseObject`. |\n| [`Audience`](./picker.audience) | `Audience` is an enumerated type used to describe the audience of the `DocumentObject`. |\n| [`DocsViewMode`](./picker.docsviewmode) | `DocsViewMode` is an enumerated type for displaying data within a DocsView. Use these values in calls to `DocsView.setMode`. |\n| [`Document`](./picker.document) | `Document` is an enumerated type used to describe the fields of a `DocumentObject`. |\n| [`Feature`](./picker.feature) | `Feature` is an enumerated type, for turning on/off features for various views. Use these values in calls to `PickerBuilder.enableFeature` and `PickerBuilder.disableFeature`. |\n| [`Response`](./picker.response) | `Response` is an enumerated type used to describe the fields of a `ResponseObject`. |\n| [`ServiceId`](./picker.serviceid) | `ServiceId` is an enumerated type used to describe the service the item was selected from. |\n| [`Thumbnail`](./picker.thumbnail) | `Thumbnail` is an enumerated type describing the fields of a `ThumbnailObject`. |\n| [`Type`](./picker.type) | The type of the selected item. |\n| [`ViewId`](./picker.viewid) | `ViewId` is an enumerated type for the various views available in the Picker. Use these values in calls to `DocsView` and `PickerBuilder`. |\n| [`ViewToken`](./picker.viewtoken) | `ViewToken` is an enumerated type used to describe the elements of a `ResponseObject.viewToken`. |\n\nInterfaces\n----------\n\n| Name | Description |\n|-----------------------------------------------|----------------------------------------------------------------------------------|\n| [`DocumentObject`](./picker.documentobject) | `DocumentObject` is an interface describing the attributes of a selected item. |\n| [`ResponseObject`](./picker.responseobject) | The response object passed to the callback method. |\n| [`ThumbnailObject`](./picker.thumbnailobject) | `ThumbnailObject` is an interface describing the attributes of a photo or video. |\n\nType aliases\n------------\n\n| Name | Description |\n|---------------------------------------------------------|----------------------------------------------------------------------------------------------------------|\n| [`Locales`](./picker.locales) | The supported ISO 639 language codes for `PickerBuilder.setLocale`. |\n| [`ParentDocumentObject`](./picker.parentdocumentobject) | `ParentDocumentObject` is an interface describing the attributes of a parent folder for a selected item. |"]]