Enum OnClose
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
বন্ধ অন একটি enum যা একটি Open Link
মাধ্যমে খোলা একটি URL বন্ধ হলে কী করতে হবে তা নির্দিষ্ট করে৷
যখন একটি লিঙ্ক খোলা হয়, ক্লায়েন্ট হয় এটি সম্পর্কে ভুলে যায় বা উইন্ডোটি বন্ধ না হওয়া পর্যন্ত অপেক্ষা করে। বাস্তবায়ন ক্লায়েন্ট প্ল্যাটফর্ম ক্ষমতার উপর নির্ভর করে। On Close
ফলে Open As
উপেক্ষা করা হতে পারে; যদি ক্লায়েন্ট প্ল্যাটফর্ম উভয় নির্বাচিত মান একসাথে সমর্থন করতে না পারে, On Close
অগ্রাধিকার নেয়।
একটি enum কল করার জন্য, আপনি তার পিতামাতার শ্রেণী, নাম এবং সম্পত্তি কল করুন। উদাহরণস্বরূপ, CardService.OnClose.RELOAD
।
বৈশিষ্ট্য
সম্পত্তি | টাইপ | বর্ণনা |
---|
NOTHING | Enum | কাছাকাছি কিছু করবেন না। ডিফল্ট |
RELOAD | Enum | উইন্ডোটি বন্ধ হয়ে গেলে অ্যাড-অনটি পুনরায় লোড করে। যদি Open As.OVERLAY ও সেট করা থাকে, তাহলে ওভারলে উইন্ডোটি বন্ধ না হওয়া পর্যন্ত এবং অ্যাড-অন পুনরায় লোড করা শেষ না হওয়া পর্যন্ত মূল কার্ডটি অবরুদ্ধ থাকে। |
অপ্রচলিত বৈশিষ্ট্য
সম্পত্তি | টাইপ | বর্ণনা |
---|
RELOAD_ADD_ON | Enum | ইউআরএল বন্ধ করার সময় অ্যাড-অনটি পুনরায় লোড করুন। এই ক্রিয়াটি RELOAD থেকে আলাদা যে এটি একটি Open As.OVERLAY উইন্ডো দেখানোর সময় মূল কার্ডটিকে ব্লক করে না। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট Creative Commons Attribution 4.0 License-এর অধীনে এবং কোডের নমুনাগুলি Apache 2.0 License-এর অধীনে লাইসেন্স প্রাপ্ত। আরও জানতে, Google Developers সাইট নীতি দেখুন। Java হল Oracle এবং/অথবা তার অ্যাফিলিয়েট সংস্থার রেজিস্টার্ড ট্রেডমার্ক।
2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।
[null,null,["2025-07-24 UTC-তে শেষবার আপডেট করা হয়েছে।"],[[["\u003cp\u003e\u003ccode\u003eOnClose\u003c/code\u003e is an enum used within \u003ccode\u003eOpenLink\u003c/code\u003e to specify an action taken when the opened URL is closed by the user.\u003c/p\u003e\n"],["\u003cp\u003eIt offers options like \u003ccode\u003eNOTHING\u003c/code\u003e (default) and \u003ccode\u003eRELOAD\u003c/code\u003e to reload the add-on upon closing the URL, with \u003ccode\u003eRELOAD\u003c/code\u003e potentially blocking the main card if used with \u003ccode\u003eOpenAs.OVERLAY\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eAlthough previously available, the \u003ccode\u003eRELOAD_ADD_ON\u003c/code\u003e option is now deprecated and should not be used in new developments.\u003c/p\u003e\n"]]],[],null,["# Enum OnClose\n\nOnClose\n\nAn enum that specifies what to do when a URL opened through an [OpenLink](/apps-script/reference/card-service/open-link) is closed.\n\nWhen a link is opened, the client either forgets about it or waits until the window is closed.\nThe implementation depends on the client platform capabilities. [OnClose](#) may cause [OpenAs](/apps-script/reference/card-service/open-as) to be ignored; if the client platform cannot support both selected values together,\n[OnClose](#) takes precedence.\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.OnClose.RELOAD`. \n\n### Properties\n\n| Property | Type | Description |\n|-----------|--------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `NOTHING` | `Enum` | Do nothing on close. Default. |\n| `RELOAD` | `Enum` | Reloads the add-on on when the window closes. If [OpenAs.OVERLAY](/apps-script/reference/card-service/open-as#OVERLAY) is also set, then the main card is blocked until the overlay window is closed and the add-on has finished reloading. |\n\n### Deprecated properties\n\n| Property | Type | Description |\n|-----------------|--------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| `RELOAD_ADD_ON` | `Enum` | Reload the add-on on closing the URL. This action differs from [RELOAD](#RELOAD) in that it does not block the main card while showing an [OpenAs.OVERLAY](/apps-script/reference/card-service/open-as#OVERLAY) window. |"]]