createGameSnacks function
Stay organized with collections
Save and categorize content based on your preferences.
Creates an embedded GameSnacks Game Center.
Signature
function createGameSnacks(iframe: HTMLIFrameElement | string, gameCenterId: string, gameId?: string): GameSnacks;
Parameters
Name |
Type |
Optional |
Description |
iframe
|
HTMLIFrameElement
| string
|
No
|
The IFrame element or ID to
use for the GameSnacks
embed. |
gameCenterId
|
string
|
No
|
The ID of the game center
to embed. |
gameId
|
string
|
Yes
|
Optional ID of the specific
game to embed. |
Returns
GameSnacks
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-09-03 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-09-03 UTC."],[[["Enables embedding a GameSnacks Game Center with an iframe, game center ID, and optional specific game ID."],["Developers can utilize the `createGameSnacks` function, providing it with the iframe, game center ID, and optionally a game ID."],["Upon successful execution, the function returns a `GameSnacks` object, offering methods and properties for interacting with the embedded game center."]]],[]]