Giao diện DocumentObject
Sử dụng bộ sưu tập để sắp xếp ngăn nắp các trang
Lưu và phân loại nội dung dựa trên lựa chọn ưu tiên của bạn.
DocumentObject
là một giao diện mô tả các thuộc tính của một mục đã chọn.
Chữ ký
interface DocumentObject
Chữ ký thuộc tính
Tên |
Mô tả |
addressLines |
(Không dùng nữa) |
audience |
(Không dùng nữa) |
description |
Nội dung mô tả do người dùng đóng góp về mục đã chọn. |
downloadUrl |
URL để tải mục này xuống. |
driveError |
Mã lỗi cho yêu cầu mở trước tài liệu trong Google Drive. |
driveSuccess |
Liệu yêu cầu mở trước tài liệu trong Google Drive có thành công hay không. |
duration |
Thời lượng của video đã chọn. |
embedUrl |
URL cho mục này phù hợp để nhúng vào trang web. |
iconUrl |
URL đến biểu tượng của mục này. |
id |
Mã của mục đã chọn. |
isNew |
Trả về true nếu mục đã chọn vừa được tải lên. |
isShared |
Mục có được chia sẻ hay không. |
lastEditedUtc |
Dấu thời gian mô tả thời điểm mục này được chỉnh sửa lần gần đây nhất. |
latitude |
Vĩ độ của mục đã chọn. |
longitude |
Vĩ độ của mục đã chọn. |
mimeType |
Loại MIME của mục này. |
name |
Tên của mục này. |
organizationDisplayName |
Tên hiển thị của tổ chức sở hữu. |
parentId |
Mã nhận dạng chính của mục này. Ví dụ: thư mục chứa tệp này. |
phoneNumbers |
Số điện thoại của mục đã chọn. |
resourceKey |
Khoá tài nguyên cho mục, nếu có. Chuỗi trống nếu không |
rotation |
(Không dùng nữa) |
rotationDegree |
(Không dùng nữa) |
serviceId |
Mã nhận dạng mô tả dịch vụ mà mặt hàng này được chọn từ đó. |
sizeBytes |
Kích thước của mục đã chọn tính bằng byte. Giá trị này không được trả về khi mục được tải lên trong phiên Bộ chọn. |
thumbnails |
Một mảng Thumbnail mô tả các thuộc tính của ảnh hoặc video. Hình thu nhỏ sẽ không được trả về nếu các mục đã chọn thuộc về Google Drive. |
type |
Loại của mục đã chọn. |
uploadId |
Thứ tự mục trong phiên tải lên. |
uploadState |
Trạng thái của quá trình tải lên. |
url |
URL đến mục này. |
Trừ phi có lưu ý khác, nội dung của trang này được cấp phép theo Giấy phép ghi nhận tác giả 4.0 của Creative Commons và các mẫu mã lập trình được cấp phép theo Giấy phép Apache 2.0. Để biết thông tin chi tiết, vui lòng tham khảo Chính sách trang web của Google Developers. Java là nhãn hiệu đã đăng ký của Oracle và/hoặc các đơn vị liên kết với Oracle.
Cập nhật lần gần đây nhất: 2025-07-25 UTC.
[null,null,["Cập nhật lần gần đây nhất: 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. |"]]