أداة إنشاء لـ EditorFileScopeActionResponse
عنصر.
الطُرق
الطريقة | نوع القيمة التي يتم إرجاعها | وصف قصير |
---|---|---|
build() | EditorFileScopeActionResponse | ينشئ استجابة إجراء "محرّر إعلانات Google" الحالية. |
requestFileScopeForActiveDocument() | EditorFileScopeActionResponseBuilder | يطلب النطاق drive.file لمستند "محرّر إعلانات Google" النشط الحالي. |
الوثائق التفصيلية
build()
ينشئ استجابة إجراء "محرّر إعلانات Google" الحالية.
استرجاع الكرة
EditorFileScopeActionResponse
— EditorFileScopeActionResponse
تم التحقق من صحتها.
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
: هذا الكائن للتسلسل.