DocsView.setEnabledDrives तरीका
शेयर की गई ड्राइव और उनमें मौजूद फ़ाइलें दिखाता है. चालू करने से पहले, शेयर की गई ड्राइव चालू करने के लिए GoogleDrive API दस्तावेज़ देखें.
अगर true
है, तो व्यू में सिर्फ़ शेयर की गई ड्राइव शामिल होती हैं.
हस्ताक्षर
setEnableDrives(enabled: boolean): DocsView;
विवरण
वैकल्पिक |
नहीं |
फ़ाइनल |
नहीं |
सुरक्षित सेक्स |
नहीं |
स्थिर |
नहीं |
पैरामीटर
नाम |
टाइप |
वैकल्पिक |
ब्यौरा |
enabled |
boolean |
नहीं |
|
रिटर्न
DocsView
जब तक कुछ अलग से न बताया जाए, तब तक इस पेज की सामग्री को Creative Commons Attribution 4.0 License के तहत और कोड के नमूनों को Apache 2.0 License के तहत लाइसेंस मिला है. ज़्यादा जानकारी के लिए, Google Developers साइट नीतियां देखें. Oracle और/या इससे जुड़ी हुई कंपनियों का, Java एक रजिस्टर किया हुआ ट्रेडमार्क है.
आखिरी बार 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"]]