Class EditorFileScopeActionResponseBuilder

ویرایشگر فایل، دامنه، اقدام، سازنده پاسخ

یک سازنده برای اشیاء Editor File Scope Action Response .

روش‌ها

روش نوع بازگشتی شرح مختصر
build() Editor File Scope Action Response پاسخ اقدام فعلی ویرایشگر را می‌سازد.
request File Scope For Active Document() Editor File Scope Action Response Builder دامنه‌ی drive.file را برای سند ویرایشگر فعال فعلی درخواست می‌کند.

مستندات دقیق

build()

پاسخ اقدام فعلی ویرایشگر را می‌سازد.

بازگشت

Editor File Scope Action Response — یک Editor File Scope Action Response معتبر.


request File Scope For Active Document()

دامنه‌ی drive.file را برای سند ویرایشگر فعال فعلی درخواست می‌کند.

// 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();

نکته: برای فراخوانی این متد، باید دامنه‌ی drive.file را به فایل manifest افزونه اضافه کنید.

بازگشت

Editor File Scope Action Response Builder — این شیء، برای زنجیره‌سازی.