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 — यह ऑब्जेक्ट, चेनिंग के लिए है.