Class EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponseBuilder

Un builder per EditorFileScopeActionResponse oggetti.

Metodi

MetodoTipo restituitoBreve descrizione
build()EditorFileScopeActionResponseCrea la risposta dell'azione Editor corrente.
requestFileScopeForActiveDocument()EditorFileScopeActionResponseBuilderRichiede l'ambito drive.file per il documento Editor attivo corrente.

Documentazione dettagliata

build()

Crea la risposta dell'azione Editor corrente.

Ritorni

EditorFileScopeActionResponse: EditorFileScopeActionResponse convalidato.


requestFileScopeForActiveDocument()

Richiede l'ambito drive.file per il documento Editor attivo corrente.

// 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();

Nota: per chiamare questo metodo, devi aggiungere l'ambito drive.file al file manifest del componente aggiuntivo.

Ritorni

EditorFileScopeActionResponseBuilder: oggetto per il concatenamento.