Triumph Docs
  • 🏆Triumph Tournaments
  • Triumph SDK
    • Install Triumph
    • Import Triumph
    • Presenting Triumph
    • Triumph Lifecycle
    • Triumph RNG
    • Configuration
    • Keys and Permissions
    • Apple Pay
    • Go Live Checklist
    • Test Flight Build
    • App Store Submission
    • Get Paid!
    • Demo Integrations
      • Swift Example
      • Unity Example
    • Common Errors
      • Unity
        • .NET Error
        • Enable Bitcode Error
  • Requirements
    • Apple Business Developer Account
  • Privacy Policy Multi Product
  • Terms of Use
  • Frequently Asked Questions (Regulatory and Legal)
  • Responsible Gaming Policy
  • Cookie Policy
  • Opt Out of Sale or Sharing of Information
Powered by GitBook
On this page
  1. Triumph SDK

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.

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() 
}

PreviousImport TriumphNextTriumph Lifecycle

Last updated 1 year ago