通过


AnimationCard class

简化生成动画卡的卡片生成器类。

扩展

构造函数

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