createGameSnacks 函数

创建嵌入式 GameSnacks 游戏中心。

签名

function createGameSnacks(iframe: HTMLIFrameElement | string, gameCenterId: string, gameId?: string): GameSnacks;

参数

名称 类型 可选 说明
iframe HTMLIFrameElement | string 用于 GameSnacks 嵌入的 iframe 元素或 ID。
gameCenterId string 要嵌入的游戏中心的 ID。
gameId string 要嵌入的特定游戏的可选 ID。

返回结果

GameSnacks