Class EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponse ऑब्जेक्ट के लिए बिल्डर.

तरीके

तरीकारिटर्न टाइपसंक्षिप्त विवरण
build()EditorFileScopeActionResponseमौजूदा एडिटर की कार्रवाई का जवाब बनाता है.
requestFileScopeForActiveDocument()EditorFileScopeActionResponseBuilderEditor के मौजूदा चालू दस्तावेज़ के लिए, drive.file स्कोप का अनुरोध करता है.

ज़्यादा जानकारी के साथ दस्तावेज़

build()

मौजूदा एडिटर की कार्रवाई का जवाब बनाता है.

रिटर्न

EditorFileScopeActionResponse — पुष्टि किया गया EditorFileScopeActionResponse.


requestFileScopeForActiveDocument()

Editor के मौजूदा चालू दस्तावेज़ के लिए, drive.file स्कोप का अनुरोध करता है.

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

ध्यान दें: इस तरीके को कॉल करने के लिए, आपको ऐड-ऑन के मेनिफ़ेस्ट में drive.file स्कोप जोड़ना होगा.

रिटर्न

EditorFileScopeActionResponseBuilder — यह ऑब्जेक्ट, चेन करने के लिए है.