Triumph Docs
Search
K

Presenting Triumph

Summon Triumph at the tap of a button. Estimated Time: 5 minutes.
Your users will access Triumph through a button tap. You will choose the look and feel of the button, but it should be clearly accessible on the start screen of your game and have a clear identifier like "Online Mode" or "Tournaments." Call the present function when your button is tapped.
Unity
Swift
using TriumphSDK;
// Action of the tournaments button
tournamentsButton.onClick.AddListener(() => {
// Summons the triumph UI when your tournaments button is tapped
Triumph.Present();
});
import TriumphSDK
// Action of the tournaments button
@objc func onTournamentsButtonPressed() {
// Summons the triumph UI when your tournaments button is tapped
Triumph.present()
}