SwiftBombNetworkingDelegate

public protocol SwiftBombNetworkingDelegate

SwiftBombNetworkingDelegate provides a way to listen in on the requests SwiftBomb is making and to allow or deny those requests be made. Send an object conforming to this protocol into your SwiftBombConfig instance when initializing the framework.

  • Called when SwiftBomb is about to perform a request to the Giant Bomb API.

    Declaration

    Swift

    func swiftBombWillPerformRequest(request: NSURLRequest)
  • Allows the denial of requests being sent to the Giant Bomb API.

    Declaration

    Swift

    func swiftBombShouldPerformRequest(request: NSURLRequest) -> Bool