Class EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponseBuilder

EditorFileScopeActionResponse ऑब्जेक्ट बनाने वाला बिल्डर.

तरीके

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

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

build()

इससे, बदलाव करने वाले मौजूदा टूल की कार्रवाई का जवाब जनरेट होता है.

वापसी का टिकट

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


requestFileScopeForActiveDocument()

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

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

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

वापसी का टिकट

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