Presentation
  • 30 Jun 2023
  • 1 Minute to read
  • Contributors
  • Dark
    Light

Presentation

  • Dark
    Light

Article summary

Android

Example Kotlin code:

    fun presentTicketsView() {
        //Call after a successful sign in
        val fragment = TicketsSDKSingleton.getEventsFragment(Activity)
        //Add the generated fragment into the view.
        supportManager
            .beginTransaction()
                .replace(layoutId, fragment)
                .commit()
    }

iOS

Example Swift code:

import TicketmasterTickets

extension UIViewController {
    /// call after `TMTickets.shared.configure`
    func presentOnNavBar() {
        // Present Tickets (push onto Nav bar)
        let ticketsVC = TMTicketsViewController()
        navigationController?.pushViewController(ticketsVC, animated: true)
    }
     
    /// call after `TMTickets.shared.configure`
    func presentModal() {
        // Present Tickets (modal)
        let ticketsVC = TMTicketsViewController()
        present(ticketsVC, animated: true)
    }
}

see Configuration


Was this article helpful?

What's Next