At any time, you can retrieve values for specific parameters that you might use in your game, such as the user's browser language.
Platform ID
Identify the platform on which the game is currently running to customize features and settings accordingly.
PlaygamaBridge.PlatformId
Returns the ID of the platform on which the game is currently running. Possible values are: playgama, vk, ok, yandex, facebook, crazy_games, game_distribution, playdeck, telegram, y8, lagged, msn, poki, qa_tool, mock.
Platform Language
Check the language to display proper text labels.
Get the language set by the user on the platform or the browser language if not provided by the platform, to localize game content.
PlaygamaBridge.PlatformLanguage
If the platform provides user language data, this will be the language set by the user on the platform. If not, it will be the browser language.
Format: ISO 639-1. Example: en, ru
URL Parameter
Embed auxiliary information into the game URL to pass additional data or settings when launching the game.
PlaygamaBridge.PlatformPayload
This parameter allows embedding auxiliary information into the game URL:
Platform
URL Format
VK
vk.com/game_id#your-info
Yandex
yandex.com/games/app/game_id?payload=your-info
Crazy Games
crazygames.com/game/game_name?payload=your-info
Mock
site.com/game_name?payload=your-info
Domain Information
Retrieve the top-level domain of the platform to handle domain-specific configurations and behavior.
PlaygamaBridge.PlatformTld
Returns the top-level domain (TLD) of the platform. If there is no data – null. If the data is available – com, ru, etc.
Is Get All Games Supported
Verify whether the platform supports the action to retrieve the correct links to the developer's other games.
Is Get Game By Id Supported
Verify whether the platform supports the action to retrieve the correct link to a specific game.
Get All Games
This method retrieves the correct links to the developer's other games.