Phương pháp DocsView.setOwnedByMe
Lọc tài liệu dựa trên việc tài liệu thuộc sở hữu của người dùng hay được chia sẻ với người dùng. Không kết hợp chế độ cài đặt này với setIncludeFolders
. Khi bạn đặt setIncludeFolders(true)
, setOwnedByMe
sẽ bị bỏ qua.
Nếu bạn không đặt tuỳ chọn này, tất cả tài liệu, bao gồm cả tài liệu dùng chung, sẽ xuất hiện trong chế độ xem.
Chữ ký
setOwnedByMe(me: boolean): DocsView;
Thông tin chi tiết
Không bắt buộc |
Không |
Chung kết |
Không |
Được bảo vệ |
Không |
Tĩnh |
Không |
Thông số
Tên |
Loại |
Không bắt buộc |
Mô tả |
me |
boolean |
Không |
|
Giá trị trả về
DocsView
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: 2024-11-08 UTC.
[null,null,["Cập nhật lần gần đây nhất: 2024-11-08 UTC."],[[["Filters documents in the view based on ownership (owned by the user or shared with them)."],["When `setIncludeFolders(true)` is used, the `setOwnedByMe` setting is disregarded."],["If this option is not configured, all documents, including shared ones, will be displayed."],["This method is not optional, final, protected, or static."],["Accepts a boolean parameter (`me`) to determine the filtering behavior and returns a DocsView object."]]],["This method filters documents displayed in the view. Setting `setOwnedByMe(true)` shows only user-owned documents; otherwise, shared documents are also included. This setting is overridden if `setIncludeFolders(true)` is set. The method requires a boolean parameter (`me`) to determine the filtering and returns a `DocsView` object. If not specified, all documents are included.\n"]]