Enum ContentType
সেভ করা পৃষ্ঠা গুছিয়ে রাখতে 'সংগ্রহ' ব্যবহার করুন
আপনার পছন্দ অনুযায়ী কন্টেন্ট সেভ করুন ও সঠিক বিভাগে রাখুন।
বিষয়বস্তুর প্রকার একটি enum মান যা একটি Update Draft Action Response
দ্বারা উত্পন্ন সামগ্রীর বিষয়বস্তুর প্রকার নির্দিষ্ট করে৷
একটি enum কল করার জন্য, আপনি তার পিতামাতার শ্রেণী, নাম এবং সম্পত্তি কল করুন। উদাহরণস্বরূপ, CardService.ContentType.TEXT
।
বৈশিষ্ট্য
সম্পত্তি | টাইপ | বর্ণনা |
---|
TEXT | Enum | নির্দেশ করে যে তৈরি করা বিষয়বস্তু হল প্লেইন টেক্সট। ডিফল্ট |
MUTABLE_HTML | Enum | নির্দেশ করে যে জেনারেট করা বিষয়বস্তু HTML হিসাবে ফরম্যাট করা হয়েছে। বিষয়বস্তু তৈরি করার পরে সম্পাদনা করা যেতে পারে। |
IMMUTABLE_HTML | Enum | ইঙ্গিত করে যে জেনারেট করা বিষয়বস্তু এইচটিএমএল হিসাবে ফর্ম্যাট করা হয়েছে, কিন্তু এই বিষয়বস্তু তৈরি হওয়ার পরে সম্পাদনা করা যাবে না। |
অন্য কিছু উল্লেখ না করা থাকলে, এই পৃষ্ঠার কন্টেন্ট 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\u003eContentType\u003c/code\u003e is an enum used to define the type of content generated by \u003ccode\u003eUpdateDraftActionResponse\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eContent types include \u003ccode\u003eTEXT\u003c/code\u003e (default plain text), \u003ccode\u003eMUTABLE_HTML\u003c/code\u003e (editable HTML), and \u003ccode\u003eIMMUTABLE_HTML\u003c/code\u003e (non-editable HTML).\u003c/p\u003e\n"],["\u003cp\u003eTo specify a content type, use the syntax: \u003ccode\u003eCardService.ContentType.PROPERTY\u003c/code\u003e, replacing \u003ccode\u003ePROPERTY\u003c/code\u003e with the desired type.\u003c/p\u003e\n"]]],["The `ContentType` enum specifies the type of content generated by an `UpdateDraftActionResponse`. It has three properties: `TEXT`, `MUTABLE_HTML`, and `IMMUTABLE_HTML`. `TEXT` indicates plain text, which is the default. `MUTABLE_HTML` represents editable HTML content, while `IMMUTABLE_HTML` represents HTML content that cannot be edited after generation. These properties are accessed via `CardService.ContentType` followed by the chosen type, such as `TEXT`.\n"],null,["# Enum ContentType\n\nContentType\n\nAn enum value that specifies the content type of the content generated by a [UpdateDraftActionResponse](/apps-script/reference/card-service/update-draft-action-response).\n\nTo call an enum, you call its parent class, name, and property. For example, `\nCardService.ContentType.TEXT`. \n\n### Properties\n\n| Property | Type | Description |\n|------------------|--------|---------------------------------------------------------------------------------------------------------------------|\n| `TEXT` | `Enum` | Indicates that the generated content is plain text. Default. |\n| `MUTABLE_HTML` | `Enum` | Indicates that the generated content is formatted as HTML. The content can be edited after it is generated. |\n| `IMMUTABLE_HTML` | `Enum` | Indicates that the generated content is formatted as HTML, but this content cannot be edited after it is generated. |"]]