DocsView.setMode 메서드
컬렉션을 사용해 정리하기
내 환경설정을 기준으로 콘텐츠를 저장하고 분류하세요.
뷰에서 문서를 표시하는 데 사용할 모드를 선택합니다.
https://www.googleapis.com/auth/drive
또는 https://www.googleapis.com/auth/drive.readonly
이외의 범위를 사용하는 경우 사용자가 썸네일 액세스 권한을 부여하지 않았으므로 DocsViewMode.LIST
을 사용하는 것이 좋습니다.
서명
setMode(mode: DocsViewMode): DocsView;
세부정보
선택사항 |
아니요 |
종료 |
아니요 |
보호됨 |
아니요 |
정적 |
아니요 |
매개변수
반환 값
DocsView
달리 명시되지 않는 한 이 페이지의 콘텐츠에는 Creative Commons Attribution 4.0 라이선스에 따라 라이선스가 부여되며, 코드 샘플에는 Apache 2.0 라이선스에 따라 라이선스가 부여됩니다. 자세한 내용은 Google Developers 사이트 정책을 참조하세요. 자바는 Oracle 및/또는 Oracle 계열사의 등록 상표입니다.
최종 업데이트: 2025-07-25(UTC)
[null,null,["최종 업데이트: 2025-07-25(UTC)"],[],[],null,["# Method DocsView.setMode\n\nSelects which mode the view will use to display the documents.\n\nIf using a scope other than `https://www.googleapis.com/auth/drive` or\n`https://www.googleapis.com/auth/drive.readonly`, it is recommended to use\n`DocsViewMode.LIST` as the user has not granted access to thumbnails.\n\nSignature\n---------\n\n setMode(mode: DocsViewMode): DocsView;\n\nDetails\n-------\n\n| Optional | No |\n| Final | No |\n| Protected | No |\n| Static | No |\n|-----------|----|\n\nParameters\n----------\n\n| Name | Type | Optional | Description |\n|--------|---------------------------------------|----------|-------------|\n| `mode` | [DocsViewMode](./picker.docsviewmode) | No | |\n\nReturns\n-------\n\n[DocsView](./picker.docsview)"]]