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 - 此对象,用于实现链式处理。