EditorFileScopeActionResponse
オブジェクトのビルダー。
Methods
方法 | 戻り値の型 | 概要 |
---|---|---|
build() | EditorFileScopeActionResponse | 現在のエディタ アクション レスポンスを作成します。 |
requestFileScopeForActiveDocument() | EditorFileScopeActionResponseBuilder | 現在アクティブなエディタ ドキュメントの drive.file スコープをリクエストします。 |
詳細なドキュメント
build()
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
- チェーン用のオブジェクト。