AI-generated Key Takeaways
- 
          EditorFileScopeActionResponseBuilderis used to buildEditorFileScopeActionResponseobjects.
- 
          The build()method constructs theEditorFileScopeActionResponse.
- 
          The requestFileScopeForActiveDocument()method requests thedrive.filescope for the active Editor document.
- 
          Requesting the drive.filescope requires adding it to the add-on's manifest.
A builder for Editor objects.
Methods
| Method | Return type | Brief description | 
|---|---|---|
| build() | Editor | Builds the current Editor action response. | 
| request | Editor | Requests the drive.filescope for the current active Editor document. | 
Detailed documentation
build()
Builds the current Editor action response.
Return
Editor — A validated Editor.
requestFileScopeForActiveDocument()     
Requests the drive.file scope for the current active Editor document.
// 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();
Note: To call this method, you must add the drive.file scope to the add-on's
manifest.
Return
Editor — This object, for chaining.