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 — 此物件用於鏈結。