AnimationCard class
簡化建置動畫卡片的卡片產生器類別。
- Extends
建構函式
| Animation |
建立新的 AnimationCard。 |
方法
| autoloop(boolean) | 媒體來源重現應該在迴圈中執行 |
| autostart(boolean) | 媒體應該自動啟動 |
| image(ICard |
傳訊支援所有媒體格式:音訊、視訊、影像和縮圖,以及優化內容下載。 |
| media(ICard |
視訊、音訊或動畫的媒體來源 |
| shareable(boolean) | 媒體應可共用 |
| subtitle(Text |
子標題會出現在 [標題] 字段下方,只有字型樣式與 [標題] 不同 |
| text(Text |
文字欄位會出現在副標題下方,只有字型樣式與 [副標題] 不同 |
| title(Text |
卡片的標題 |
| to |
傳回卡片的 JSON |
| value(any) | 此卡片的增補參數。 |
建構函式詳細資料
AnimationCard(Session)
方法詳細資料
autoloop(boolean)
媒體來源重現應該在迴圈中執行
function autoloop(choice: boolean)
參數
- choice
-
boolean
傳回
this
autostart(boolean)
媒體應該自動啟動
function autostart(choice: boolean)
參數
- choice
-
boolean
傳回
this
image(ICardImage | IIsCardImage)
傳訊支援所有媒體格式:音訊、視訊、影像和縮圖,以及優化內容下載。
function image(image: ICardImage | IIsCardImage)
參數
- image
傳回
this
media(ICardMediaUrl[])
shareable(boolean)
媒體應可共用
function shareable(choice: boolean)
參數
- choice
-
boolean
傳回
this
subtitle(TextType, any[])
子標題會出現在 [標題] 字段下方,只有字型樣式與 [標題] 不同
function subtitle(text: TextType, args: any[])
參數
- text
- TextType
- args
-
any[]
傳回
this
text(TextType, any[])
文字欄位會出現在副標題下方,只有字型樣式與 [副標題] 不同
function text(text: TextType, args: any[])
參數
- text
- TextType
- args
-
any[]
傳回
this
title(TextType, any[])
toAttachment()
value(any)
此卡片的增補參數。
function value(param: any)
參數
- param
-
any
傳回
this