DocumentObject interfaccia
Mantieni tutto organizzato con le raccolte
Salva e classifica i contenuti in base alle tue preferenze.
DocumentObject
è un'interfaccia che descrive gli attributi di un elemento selezionato.
Firma
interface DocumentObject
Firme delle proprietà
Nome |
Descrizione |
addressLines |
(Ritiro previsto) |
audience |
(Ritiro previsto) |
description |
Una descrizione dell'elemento selezionato fornita dagli utenti. |
downloadUrl |
Un URL per scaricare questo elemento. |
driveError |
Il codice di errore della richiesta di preapertura del documento in Google Drive. |
driveSuccess |
Se la richiesta di preapertura del documento su Google Drive è andata a buon fine. |
duration |
La durata di un video selezionato. |
embedUrl |
Un URL per questo elemento adatto all'incorporamento in una pagina web. |
iconUrl |
Un URL che rimanda a un'icona per questo elemento. |
id |
L'ID dell'elemento selezionato. |
isNew |
Restituisce true se l'elemento selezionato è stato appena caricato. |
isShared |
Se l'elemento è condiviso. |
lastEditedUtc |
Il timestamp che descrive l'ultima modifica di questo elemento. |
latitude |
La latitudine dell'elemento selezionato. |
longitude |
La longitudine dell'elemento selezionato. |
mimeType |
Il tipo MIME di questo elemento. |
name |
Il nome di questo elemento. |
organizationDisplayName |
Nome visualizzato per l'organizzazione proprietaria. |
parentId |
L'ID principale di questo articolo. Ad esempio, la cartella contenente questo file. |
phoneNumbers |
I numeri di telefono dell'elemento selezionato. |
resourceKey |
La chiave della risorsa per l'elemento, se presente. Stringa vuota in caso contrario |
rotation |
(Ritiro previsto) |
rotationDegree |
(Deprecato) |
serviceId |
Un ID che descrive il servizio da cui è stato selezionato l'elemento. |
sizeBytes |
Dimensioni dell'elemento selezionato in byte. Il valore non viene restituito quando l'elemento viene caricato durante la sessione Selettore. |
thumbnails |
Un array di Thumbnail che descrivono gli attributi di una foto o di un video. Le miniature non vengono restituite se gli elementi selezionati appartengono a Google Drive. |
type |
Il tipo di elemento selezionato. |
uploadId |
L'ordine degli articoli nella sessione di caricamento. |
uploadState |
Lo stato del caricamento. |
url |
Un URL che rimandi a questo articolo. |
Salvo quando diversamente specificato, i contenuti di questa pagina sono concessi in base alla licenza Creative Commons Attribution 4.0, mentre gli esempi di codice sono concessi in base alla licenza Apache 2.0. Per ulteriori dettagli, consulta le norme del sito di Google Developers. Java è un marchio registrato di Oracle e/o delle sue consociate.
Ultimo aggiornamento 2025-07-25 UTC.
[null,null,["Ultimo aggiornamento 2025-07-25 UTC."],[],[],null,["# Interface DocumentObject\n\n`DocumentObject` is an interface describing the attributes of a selected item.\n\nSignature\n---------\n\n interface DocumentObject\n\nProperty signatures\n-------------------\n\n| Name | Description |\n|------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [~~`addressLines`~~](./picker.documentobject.addresslines) | *(Deprecated)* |\n| [~~`audience`~~](./picker.documentobject.audience) | *(Deprecated)* |\n| [`description`](./picker.documentobject.description) | A user-contributed description of the selected item. |\n| [`downloadUrl`](./picker.documentobject.downloadurl) | A URL to download this item. |\n| [`driveError`](./picker.documentobject.driveerror) | The error code for the request to pre-open the document in Google Drive. |\n| [`driveSuccess`](./picker.documentobject.drivesuccess) | Whether the request to pre-open the document in Google Drive was successful. |\n| [`duration`](./picker.documentobject.duration) | The duration of a selected video. |\n| [`embedUrl`](./picker.documentobject.embedurl) | A URL for this item suitable for embedding in a web page. |\n| [`iconUrl`](./picker.documentobject.iconurl) | A URL to an icon for this item. |\n| [`id`](./picker.documentobject.id) | The ID for the selected item. |\n| [`isNew`](./picker.documentobject.isnew) | Returns true if the selected item was just uploaded. |\n| [`isShared`](./picker.documentobject.isshared) | Whether the item is shared. |\n| [`lastEditedUtc`](./picker.documentobject.lasteditedutc) | The timestamp describing when this item was last edited. |\n| [`latitude`](./picker.documentobject.latitude) | The latitude of the selected item. |\n| [`longitude`](./picker.documentobject.longitude) | The longitude of the selected item. |\n| [`mimeType`](./picker.documentobject.mimetype) | The MIME type of this item. |\n| [`name`](./picker.documentobject.name) | The name of this item. |\n| [`organizationDisplayName`](./picker.documentobject.organizationdisplayname) | Display name for the owning organization. |\n| [`parentId`](./picker.documentobject.parentid) | The parent ID of this item. For example, the folder containing this file. |\n| [`phoneNumbers`](./picker.documentobject.phonenumbers) | The phone numbers of the selected item. |\n| [`resourceKey`](./picker.documentobject.resourcekey) | The resource key for the item, if present. Empty string otherwise |\n| [~~`rotation`~~](./picker.documentobject.rotation) | *(Deprecated)* |\n| [~~`rotationDegree`~~](./picker.documentobject.rotationdegree) | *(Deprecated)* |\n| [`serviceId`](./picker.documentobject.serviceid) | An id describing the service this item was selected from. |\n| [`sizeBytes`](./picker.documentobject.sizebytes) | Size of the picked item in bytes. The value is not returned when the item is uploaded during the Picker session. |\n| [`thumbnails`](./picker.documentobject.thumbnails) | An array of `Thumbnail`s which describe the attributes of a photo or video. Thumbnails aren't returned if the selected items belong to Google Drive. |\n| [`type`](./picker.documentobject.type) | The type of the selected item. |\n| [`uploadId`](./picker.documentobject.uploadid) | The item order in the upload session. |\n| [`uploadState`](./picker.documentobject.uploadstate) | The state of the upload. |\n| [`url`](./picker.documentobject.url) | A URL to this item. |"]]