Class EditorFileScopeActionResponseBuilder

עורךקובץהיקףפעולהכלי ליצירת תגובות

‫Builder לאובייקטים מסוג EditorFileScopeActionResponse.

Methods

שיטהסוג הערך שמוחזרתיאור קצר
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.
AddOnsResponseService.newEditorFileScopeActionResponseBuilder()
    .requestFileScopeForActiveDocument()
    .build();

הערה: כדי להפעיל את ה-method הזה, צריך להוסיף את ההיקף drive.file למניפסט של התוסף.

חזרה

EditorFileScopeActionResponseBuilder – האובייקט הזה, לשרשור.