Class EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponse nesne için oluşturucu.

Yöntemler

YöntemDönüş türüKısa açıklama
build()EditorFileScopeActionResponseGeçerli Editor işlem yanıtını oluşturur.
requestFileScopeForActiveDocument()EditorFileScopeActionResponseBuilderGeçerli etkin Editor dokümanı için drive.file kapsamını ister.

Ayrıntılı belgeler

build()

Geçerli Editor işlem yanıtını oluşturur.

Return

EditorFileScopeActionResponse — Doğrulanmış EditorFileScopeActionResponse.


requestFileScopeForActiveDocument()

Geçerli etkin Editor 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.
CardService.newEditorFileScopeActionResponseBuilder()
    .requestFileScopeForActiveDocument()
    .build();

Not: Bu yöntemi çağırmak için eklentinin manifest dosyasına drive.file kapsamını eklemeniz gerekir.

Return

EditorFileScopeActionResponseBuilder: Zincirleme için bu nesne.