Editor 对象的构建器。
方法
| 方法 | 返回类型 | 简介 |
|---|---|---|
build() | Editor | 构建当前的编辑器操作响应。 |
request | Editor | 请求当前活跃 Editor 文档的 drive.file 范围。 |
详细文档
build()
request File Scope For Active Document()
为当前活跃的编辑器文档请求 drive.file 范围。
// Display a permissions dialog to the user, requesting `drive.file` scope for // the current document on behalf of this add-on. AddOnsResponseService.newEditorFileScopeActionResponseBuilder() .requestFileScopeForActiveDocument() .build();
注意:如需调用此方法,您必须将 drive.file 范围添加到插件的清单中。
返回
Editor - 此对象,用于链式调用。