Class EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponse オブジェクトのビルダー。

Methods

メソッド戻り値の型概要
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 - このオブジェクト(チェーン用)。