共用方式為


CardImage class

建立器類別可簡化將影像新增至卡片。

建構函式

CardImage(Session)

建立新的 CardImage。

方法

alt(TextType, any[])

要用於輔助功能倒置的影像替代文字。

create(Session, string)

為指定的 URL 建立新的 CardImage。

tap(ICardAction | IIsCardAction)

點選影像時要採取的動作。

toImage()

傳回影像的 JSON。

url(string)

要顯示的影像 URL。

建構函式詳細資料

CardImage(Session)

建立新的 CardImage。

new CardImage(session?: Session)

參數

session
Session

(選擇性)將用來當地語系化任何文字。

方法詳細資料

alt(TextType, any[])

要用於輔助功能倒置的影像替代文字。

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

參數

text
TextType
args

any[]

傳回

create(Session, string)

為指定的 URL 建立新的 CardImage。

static function create(session: Session, url: string)

參數

session
Session
url

string

傳回

tap(ICardAction | IIsCardAction)

點選影像時要採取的動作。

function tap(action: ICardAction | IIsCardAction)

參數

傳回

toImage()

傳回影像的 JSON。

function toImage()

傳回

url(string)

要顯示的影像 URL。

function url(u: string)

參數

u

string

傳回