DocsView.setEnableDrives 메서드
공유 드라이브 및 해당 드라이브에 포함된 파일을 표시합니다. 사용 설정하기 전에 공유 드라이브 사용 설정에 관한 GoogleDrive API 문서를 참고하세요.
true
인 경우 뷰에 공유 드라이브만 포함됩니다.
서명
setEnableDrives(enabled: boolean): DocsView;
세부정보
선택사항 |
아니요 |
종료 |
아니요 |
보호됨 |
아니요 |
정적 |
아니요 |
매개변수
이름 |
유형 |
선택사항 |
설명 |
enabled |
boolean |
아니요 |
|
반환 값
DocsView
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 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"]]