Class EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponse 객체의 빌더입니다.

방법

메서드반환 유형간략한 설명
build()EditorFileScopeActionResponse현재 편집기 작업 응답을 빌드합니다.
requestFileScopeForActiveDocument()EditorFileScopeActionResponseBuilder현재 활성 편집기 문서의 drive.file 범위를 요청합니다.

자세한 문서

build()

현재 편집기 작업 응답을 빌드합니다.

리턴

EditorFileScopeActionResponse — 확인된 EditorFileScopeActionResponse입니다.


requestFileScopeForActiveDocument()

현재 활성 편집기 문서의 drive.file 범위를 요청합니다.

// Display a permissions dialog to the user, requesting `drive.file` scope for the current
// document on behalf of this add-on.
CardService.newEditorFileScopeActionResponseBuilder()
    .requestFileScopeForActiveDocument()
    .build();

참고: 이 메서드를 호출하려면 부가기능의 매니페스트에 drive.file 범위를 추가해야 합니다.

리턴

EditorFileScopeActionResponseBuilder - 체이닝용 객체입니다.