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.
CardService.newEditorFileScopeActionResponseBuilder()
    .requestFileScopeForActiveDocument()
    .build();

দ্রষ্টব্য: এই পদ্ধতিটি কল করার জন্য, আপনাকে অ্যাড-অনের ম্যানিফেস্টে drive.file স্কোপ যোগ করতে হবে।

প্রত্যাবর্তন

EditorFileScopeActionResponseBuilder — এই বস্তুটি, চেইন করার জন্য।