سازنده برای اشیاء EditorFileScopeActionResponse
.
مواد و روش ها
روش | نوع برگشت | توضیح مختصر |
---|---|---|
build() | EditorFileScopeActionResponse | پاسخ فعلی ویرایشگر را ایجاد می کند. |
requestFileScopeForActiveDocument() | EditorFileScopeActionResponseBuilder | محدوده drive.file را برای سند ویرایشگر فعال فعلی درخواست می کند. |
مستندات دقیق
build()
پاسخ فعلی ویرایشگر را ایجاد می کند.
برگشت
EditorFileScopeActionResponse
- یک EditorFileScopeActionResponse
معتبر.
requestFileScopeForActiveDocument()
محدوده drive.file
را برای سند ویرایشگر فعال فعلی درخواست می کند.
// 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
- این شیء برای زنجیره زدن.