Cross-Promo
Configuration
{
"crossPromo": {
"title": "More games", // optional modal title
"source": "config", // 'config' = static list below (default), 'platform' = platform SDK catalog
"games": [ // used when source = 'config'
{ "url": "https://...", "icon": "https://...", "name": "Game A" }
]
}
}Get Games
bridge.crossPromo.getGames()
.then(games => {
games.forEach(game => {
console.log(game.name, game.url)
})
})private void Start()
{
Bridge.crossPromo.GetGames(OnGetGamesCompleted);
}
private void OnGetGamesCompleted(bool success, List<Dictionary<string, string>> games)
{
if (success)
{
foreach (var game in games)
{
Debug.Log($"{game["name"]}: {game["url"]}");
}
}
}Show / Hide
Last updated