Class EditorFileScopeActionResponseBuilder

Tetap teratur dengan koleksi Simpan dan kategorikan konten berdasarkan preferensi Anda.
EditorFileScopeActionResponseBuilder

Builder untuk objek EditorFileScopeActionResponse.

Metode

MetodeJenis hasil yang ditampilkanDeskripsi singkat
build()EditorFileScopeActionResponseMembuat respons tindakan Editor saat ini.
requestFileScopeForActiveDocument()EditorFileScopeActionResponseBuilderMeminta cakupan drive.file untuk dokumen Editor yang saat ini aktif.

Dokumentasi mendetail

build()

Membuat respons tindakan Editor saat ini.

Return

EditorFileScopeActionResponseEditorFileScopeActionResponse 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.