Class EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponseBuilder

כלי לבנייה של 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 – האובייקט הזה, לשרשור.