共用方式為


AnimationCard class

簡化建置動畫卡片的卡片產生器類別。

Extends

建構函式

AnimationCard(Session)

建立新的 AnimationCard。

方法

autoloop(boolean)

媒體來源重現應該在迴圈中執行

autostart(boolean)

媒體應該自動啟動

image(ICardImage | IIsCardImage)

傳訊支援所有媒體格式:音訊、視訊、影像和縮圖,以及優化內容下載。

media(ICardMediaUrl[])

視訊、音訊或動畫的媒體來源

shareable(boolean)

媒體應可共用

subtitle(TextType, any[])

子標題會出現在 [標題] 字段下方,只有字型樣式與 [標題] 不同

text(TextType, any[])

文字欄位會出現在副標題下方,只有字型樣式與 [副標題] 不同

title(TextType, any[])

卡片的標題

toAttachment()

傳回卡片的 JSON

value(any)

此卡片的增補參數。

建構函式詳細資料

AnimationCard(Session)

建立新的 AnimationCard。

new AnimationCard(session?: Session)

參數

session
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)

參數

傳回

this

media(ICardMediaUrl[])

視訊、音訊或動畫的媒體來源

function media(list: ICardMediaUrl[])

參數

list

ICardMediaUrl[]

傳回

this

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[])

卡片的標題

function title(text: TextType, args: any[])

參數

text
TextType
args

any[]

傳回

this

toAttachment()

傳回卡片的 JSON

function toAttachment()

傳回

value(any)

此卡片的增補參數。

function value(param: any)

參數

param

any

傳回

this