EditorFileScopeActionResponse
nesne için oluşturucu.
Yöntemler
Yöntem | Dönüş türü | Kısa açıklama |
---|---|---|
build() | EditorFileScopeActionResponse | Geçerli Editor işlem yanıtını oluşturur. |
requestFileScopeForActiveDocument() | EditorFileScopeActionResponseBuilder | Geç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.