เครื่องมือสร้างสําหรับออบเจ็กต์ EditorFileScopeActionResponse
รายการ
เมธอด
วิธีการ | ประเภทการแสดงผล | รายละเอียดแบบย่อ |
---|---|---|
build() | EditorFileScopeActionResponse | สร้างการตอบสนองการดําเนินการของตัวแก้ไขปัจจุบัน |
requestFileScopeForActiveDocument() | EditorFileScopeActionResponseBuilder | ขอขอบเขต drive.file สําหรับเอกสาร Editor ที่ใช้งานอยู่ในปัจจุบัน |
เอกสารประกอบโดยละเอียด
build()
สร้างการตอบสนองการดําเนินการของตัวแก้ไขปัจจุบัน
ไปกลับ
EditorFileScopeActionResponse
— EditorFileScopeActionResponse
ที่ได้รับการตรวจสอบแล้ว
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
— เป็นออบเจ็กต์นี้เพื่อเป็นเชน