"label":"Missing the information I need"
"label":"Too complicated / too many steps"
"label":"Out of date"
"label":"Easy to understand"
"label":"Solved my problem"
Picker API Reference
The following is a list of classes, methods, and enumerated types available in the Google Picker API. All of these elements belong to the namespace google.picker.* There are two types of classes and enumerated types: those which are used to build and configure the Google Picker, and those which are returned by the Google Picker once the user has selected an item.
Configuration Classes and Types
The following classes and enumerated types are used to build and configure the Google Picker.
Use DocsUploadView to upload documents to Google Drive.
Allows the user to select a folder in Google Drive to upload to.
Sets the upload destination to the specified folder. This overrides ".setIncludeFolders" to false.
DocsView is a subclass of View that can be used for Google Drive views.
Selects which mode the view uses to display the documents.
DocsView.setOwnedByMe(boolean | undefined)
Filters the documents based on whether they are owned by the user, or shared with the user. Do not combine this setting with setIncludeFolders. When setIncludeFolders(true) is set, setOwnedByMe is ignored.
Sets the initial parent folder to display.
Filters the documents based on whether they are starred by the user.
DocsViewMode is an enumerated type for displaying data within a DocsView. Use these values in calls to DocsView.setMode.
Display documents in a thumbnail grid.
Display documents in a detailed list.
Feature is an enumerated type, for turning on/off features for various views. Use these values in calls to PickerBuilder.enableFeature and PickerBuilder.disableFeature.
Show only documents owned by the user when showing items from Google Drive.
Allow user to choose more than one item.
Hide the navigation pane. If the navigation pane is hidden, users can only select from the first view chosen.
For photo uploads, controls whether per-photo selection (as opposed to per-album) selection is enabled.
Excludes cc_noncommercial and cc_nonderived. Default choice.
No exclusions for images with Creative Common attributes.
Add a site filter for image source. E.g. flickr.com. Only the last site set by setSite is honored (i.e. it is not cumulative.)
Set the minimum size of image.
Images at least 400x300 in either aspect ratio.
Images at least 640x480.
Images at least 800x600.
Images at least 1024x768.
Images at least 1280x800.
Images at least 1440x900.
Images at least 2 megapixels.
Images at least 4 megapixels.
Images at least 6 megapixels.
Images at least 8 megapixels.
Images at least 10 megapixels.
Images at least 12 megapixels.
Images at least 15 megapixels.
Images at least 20 megapixels.
Images at least 40 megapixels.
Images at least 70 megapixels.
Images at least 140 megapixels.
MapsView is a subclass of View. Control the initial view for map selection using this class.
Center the initial map view at a given coordinate. The arguments are latitude and longitude values, respectively.
Set the initial zoom level. Valid range is 0 to 21; a higher value indicates a greater zoom.
PhotoAlbumsView is a subclass of View that can be used to select albums from Google Photos albums.
PhotosView is a subclass of View. Finer aspects of photos selection can be controlled using this class.
Sets the initial parent album to display.
Filter photos shown in the view by PhotosView.Type.
Select from the user's most recently uploaded photos, from any album, with the most recently uploaded photos shown first.
Picker is the top level object representing the UI action with the user. These objects are not created directly, but instead use the PickerBuilder object.
Get a boolean indicating the current Picker visibility.
Specify the callback method called whenever the user has selected an item (or canceled.)
Specify a relay URL to circumvent cross-domain issues.
Control the visibility of the Picker object.
Disposes the Picker object.
PickerBuilder is used to create Picker objects. Except where noted otherwise, the return type of methods below are of type PickerBuilder, allowing you to chain one call after another. See the Google Picker example for typical use.
Set the callback method. This method is called when the user selected items or cancels. The callback method receives a single callback object. The structure of the callback object is described in the JSON Guide.
ISO 639 language code. If the language is not supported, en-US is used. This method provides an alternative to setting the locale at google.load() time. See the Developer's Guide for a list of supported locales.
Sets the maximum number of items a user can select.
Sets an OAuth token to use for authenticating the current user. Depending on the scope of the token, only certain views display data. Valid scopes are Google Docs, Drive, Photos,
Sets the origin of picker dialog. The origin should be set to the window.location.protocol + '//' + window.location.host of the top-most page, if your application is running in an iframe.
Set the relay URL, used for gadgets.rpc.
Set the list of selectable MIME types. Use commas to separate MIME types if more than one is required.
Set the preferred dialog size. The dialog is auto-centered. It has a minimum size of (566,350) and a maximum size of (1051,650).
Set the dialog title.
Returns the URI generated by this builder.
ResourceId is a static class used to generate resource IDs suitable for the Google Documents List API.
WebCamViewType is an enumerated type, used for constructing WebCamViews.
Take a photo using a web camera.
The following enumerated types are found in callback data returned by the Google Picker API.
Action is an enumerated type representing the action taken by the user to dismiss the dialog. This value is in the Response.ACTION field in the callback data.
User canceled the picker dialog.
User has chosen at least one item.
Audience is an enumerated type representing the audience of a photo album. This value is in the Document.AUDIENCE field of the Document object when a Google Photos album is selected.
Contents are accessible only to the owner.
Contents are accessible to users other than the owner.
Contents are accessible to everyone.
Document is an enumerated type used to convey information about a specific selected item. Only fields which are relevant to the selected item are returned. This value is in the Response.DOCUMENTS field in the callback data.
The address of the selected location.
An Audience type used to convey the audience of a Google Photos album.
A user-contributed description of the selected item.
The duration of a selected video.
A URL for this item suitable for embedding in a web page.
A URL to an icon for this item.
The id for the selected item.
Returns true if the selected item was just uploaded.
The timestamp describing when this item was last edited.
The latitude of the selected location.
The longitude of the selected location.
The MIME type of this item.
The name of this item.
The number of children contained in this item. For example, the number of files in the selected folder.
The parent id of this item. For example, the folder containing this file.
The phone number of the selected location.
A ServiceId describing the service this item was selected from.
An array of Thumbnails which describe the attributes of a photo or video. Thumbnails aren't returned if the selected items belong to Google Drive.