FlightSearchDelegate
public protocol FlightSearchDelegate : AnyObject
Notified of flight search results
-
Called when results were successfully retrieved
- result: The
Array<Flight>matching the query
Declaration
Swift
func flightSearchDidSucceedWith(_ result: [Flight]) - result: The
-
Called when there was an error retrieving results
- error: The
Errorrepresenting the reason for failure. No specific error to look for here, best course of action is to just display a generic error message.
Declaration
Swift
func flightSearchDidFailWith(_ error: Error) - error: The
FlightSearchDelegate Protocol Reference