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
- このオブジェクト(チェーン用)。