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