Class EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponseBuilder

أداة إنشاء لـ EditorFileScopeActionResponse عنصر.

الطُرق

الطريقةنوع القيمة التي يتم إرجاعهاوصف قصير
build()EditorFileScopeActionResponseينشئ استجابة إجراء "محرّر إعلانات Google" الحالية.
requestFileScopeForActiveDocument()EditorFileScopeActionResponseBuilderيطلب النطاق drive.file لمستند "محرّر إعلانات Google" النشط الحالي.

الوثائق التفصيلية

build()

ينشئ استجابة إجراء "محرّر إعلانات Google" الحالية.

استرجاع الكرة

EditorFileScopeActionResponseEditorFileScopeActionResponse تم التحقق من صحتها.


requestFileScopeForActiveDocument()

يطلب النطاق drive.file لمستند "محرّر إعلانات Google" النشط الحالي.

// 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: هذا الكائن للتسلسل.