เมธอด DocsView.setEnableDrives
แสดงไดรฟ์ที่แชร์และไฟล์ที่อยู่ในไดรฟ์ โปรดอ่านเอกสารประกอบของ GoogleDrive API สําหรับการเปิดใช้ไดรฟ์ที่แชร์ก่อนเปิดใช้
หากเป็น true
จะมีเฉพาะไดรฟ์ที่แชร์เท่านั้นที่รวมอยู่ในมุมมอง
ลายเซ็น
setEnableDrives(enabled: boolean): DocsView;
รายละเอียด
ไม่บังคับ |
ไม่ |
รอบชิงชนะเลิศ |
ไม่ |
มีการป้องกัน |
ไม่ |
คงที่ |
ไม่ |
พารามิเตอร์
ชื่อ |
ประเภท |
ไม่บังคับ |
คำอธิบาย |
enabled |
boolean |
ไม่ |
|
การคืนสินค้า
DocsView
เนื้อหาของหน้าเว็บนี้ได้รับอนุญาตภายใต้ใบอนุญาตที่ต้องระบุที่มาของครีเอทีฟคอมมอนส์ 4.0 และตัวอย่างโค้ดได้รับอนุญาตภายใต้ใบอนุญาต Apache 2.0 เว้นแต่จะระบุไว้เป็นอย่างอื่น โปรดดูรายละเอียดที่นโยบายเว็บไซต์ Google Developers Java เป็นเครื่องหมายการค้าจดทะเบียนของ Oracle และ/หรือบริษัทในเครือ
อัปเดตล่าสุด 2024-11-15 UTC
[null,null,["อัปเดตล่าสุด 2024-11-15 UTC"],[[["Displays shared drives and their files, requiring prior enabling as outlined in Google Drive API documentation."],["Controls view to include only shared drives if set to `true`."],["`setEnableDrives` function takes a boolean and customizes the DocsView to include or exclude shared drives."]]],["This documentation outlines how to display shared drives within a view. The `setEnableDrives` function, requiring a boolean input (`enabled`), controls the visibility of shared drives. When `enabled` is `true`, the view will display only shared drives; otherwise, it will not. Prior to enabling, refer to the Google Drive API documentation for enabling shared drives. The function returns a `DocsView` object, and its usage is not optional.\n"]]