EditorFileScopeActionResponse nesneleri için bir oluşturucu.
Yöntemler
| Yöntem | Dönüş türü | Kısa açıklama |
|---|---|---|
build() | Editor | Mevcut düzenleyici işlemi yanıtını oluşturur. |
request | Editor | Şu anda etkin olan Düzenleyici dokümanı için drive.file kapsamını ister. |
Ayrıntılı belgeler
build()
Mevcut düzenleyici işlemi yanıtını oluşturur.
Return
EditorFileScopeActionResponse — Doğrulanmış EditorFileScopeActionResponse.
requestFileScopeForActiveDocument()
Şu anda etkin olan Düzenleyici dokümanı için drive.file kapsamını ister.
// 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();
Not: Bu yöntemi çağırmak için eklentinin manifestine drive.file kapsamını eklemeniz gerekir.
Return
EditorFileScopeActionResponseBuilder: Zincirleme için kullanılan bu nesne.