כלי לבנייה של EditorFileScopeActionResponse
אובייקטים.
שיטות
שיטה | סוג הערך שמוחזר | תיאור קצר |
---|---|---|
build() | EditorFileScopeActionResponse | יצירת התגובה הנוכחית של הפעולה ב-Editor. |
requestFileScopeForActiveDocument() | EditorFileScopeActionResponseBuilder | המערכת מבקשת את ההיקף drive.file של מסמך ה-Editor הפעיל הנוכחי. |
תיעוד מפורט
build()
יצירת התגובה הנוכחית של הפעולה ב-Editor.
החזרות
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
למניפסט של התוסף.
החזרות
EditorFileScopeActionResponseBuilder
– האובייקט הזה, לשרשור.