Skip to content

Commit 82f43dc

Browse files
committed
Added handleErrorPageCustomButton to OrderDelegate
1 parent 97a8740 commit 82f43dc

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

TMSDKDemoIntegration/Logic/Tickets/TicketsHelper+OrderDelegate.swift

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,18 @@ extension TicketsHelper: TMTicketsOrderDelegate {
3939
}
4040
}
4141

42+
/// Method is invoked when custom button title is set by ``TMTickets/addCustomErrorPageButton(title:)``
43+
///
44+
/// Add any custom behavior in your code when the custom error button is pressed.
45+
///
46+
/// - Note: By default the custom button is hidden, so this method will not be called unless you set the custom button title first.
47+
///
48+
/// - Parameters:
49+
/// - title: The title of the button set by ``TMTickets/addCustomErrorPageButton(title:)``
50+
func handleErrorPageCustomButton(title: String) {
51+
print("User Pressed \(title) Button on No Tickets Error Page")
52+
}
53+
4254
/// Method is invoked when the list of event change for a particular event ID
4355
/// - parameter events: array of current Events being viewed, will NOT contain Order or Ticket data
4456
/// - parameter fromCache: true = local cached data, false = fresh data from network

0 commit comments

Comments
 (0)