- Print
- DarkLight
Article summary
Did you find this summary helpful?
Thank you for your feedback
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?