Class EditorFileScopeActionResponseBuilder

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.
CardService.newEditorFileScopeActionResponseBuilder()
    .requestFileScopeForActiveDocument()
    .build();

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

חזרה

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