Class EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponseBuilder

เครื่องมือสร้างสําหรับออบเจ็กต์ EditorFileScopeActionResponse รายการ

เมธอด

วิธีการประเภทการแสดงผลรายละเอียดแบบย่อ
build()EditorFileScopeActionResponseสร้างการตอบสนองการดําเนินการของตัวแก้ไขปัจจุบัน
requestFileScopeForActiveDocument()EditorFileScopeActionResponseBuilderขอขอบเขต drive.file สําหรับเอกสาร Editor ที่ใช้งานอยู่ในปัจจุบัน

เอกสารประกอบโดยละเอียด

build()

สร้างการตอบสนองการดําเนินการของตัวแก้ไขปัจจุบัน

ไปกลับ

EditorFileScopeActionResponseEditorFileScopeActionResponse ที่ได้รับการตรวจสอบแล้ว


requestFileScopeForActiveDocument()

ขอขอบเขต drive.file สําหรับเอกสาร Editor ที่ใช้งานอยู่ในปัจจุบัน

// 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 ลงในไฟล์ Manifest ของส่วนเสริม

ไปกลับ

EditorFileScopeActionResponseBuilder — เป็นออบเจ็กต์นี้เพื่อเป็นเชน