Enum ContentType
ContentType
ערך enum שמציין את סוג התוכן שנוצר על ידי UpdateDraftActionResponse
.
כדי לקרוא למאפיין enum, צריך לקרוא לכיתה ההורה, לשם ולנכס שלו. לדוגמה,
CardService.ContentType.TEXT
.
מאפיינים
נכס | סוג | תיאור |
TEXT | Enum | מציין שהתוכן שנוצר הוא טקסט פשוט. ברירת מחדל. |
MUTABLE_HTML | Enum | מציין שהפורמט של התוכן שנוצר הוא HTML. אפשר לערוך את התוכן אחרי שהוא נוצר. |
IMMUTABLE_HTML | Enum | האפשרות הזו מציינת שהפורמט של התוכן שנוצר הוא HTML, אבל אי אפשר לערוך את התוכן הזה אחרי שהוא נוצר. |
אלא אם צוין אחרת, התוכן של דף זה הוא ברישיון Creative Commons Attribution 4.0 ודוגמאות הקוד הן ברישיון Apache 2.0. לפרטים, ניתן לעיין במדיניות האתר Google Developers. Java הוא סימן מסחרי רשום של חברת Oracle ו/או של השותפים העצמאיים שלה.
עדכון אחרון: 2024-12-02 (שעון UTC).
[null,null,["עדכון אחרון: 2024-12-02 (שעון UTC)."],[[["`ContentType` is an enum used to define the type of content generated by `UpdateDraftActionResponse`."],["Content types include `TEXT` (default plain text), `MUTABLE_HTML` (editable HTML), and `IMMUTABLE_HTML` (non-editable HTML)."],["To specify a content type, use the syntax: `CardService.ContentType.PROPERTY`, replacing `PROPERTY` with the desired type."]]],["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"]]