Class EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponse nesneleri için bir oluşturucu.

Yöntemler

YöntemDönüş türüKısa açıklama
build()EditorFileScopeActionResponseMevcut düzenleyici işlemi yanıtını oluşturur.
requestFileScopeForActiveDocument()EditorFileScopeActionResponseBuilderŞ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 bu nesne.