Builder untuk objek EditorFileScopeActionResponse
.
Metode
Metode | Jenis hasil yang ditampilkan | Deskripsi singkat |
---|---|---|
build() | EditorFileScopeActionResponse | Membuat respons tindakan Editor saat ini. |
requestFileScopeForActiveDocument() | EditorFileScopeActionResponseBuilder | Meminta cakupan drive.file untuk dokumen Editor yang saat ini aktif. |
Dokumentasi mendetail
build()
Membuat respons tindakan Editor saat ini.
Return
EditorFileScopeActionResponse
— EditorFileScopeActionResponse
yang divalidasi.
requestFileScopeForActiveDocument()
Meminta cakupan drive.file
untuk dokumen Editor yang saat ini aktif.
// 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();
Catatan: Untuk memanggil metode ini, Anda harus menambahkan cakupan drive.file
ke manifes add-on.
Return
EditorFileScopeActionResponseBuilder
— Objek ini, untuk rantai.