GameChallengeViewController

open class GameChallengeViewController: NibViewController,
    ChallengeResponderDelegate,
    WKScriptMessageHandler,
    WKNavigationDelegate,
WKUIDelegate

Undocumented

IBOutlets

  • View of the game.

    Declaration

    Swift

    @IBOutlet
    public var gameView: WKWebView!

Properties

  • Prize object.

    Declaration

    Swift

    open var prizeWon: Prize?
  • The localized description of the error.

    Declaration

    Swift

    open var errorDescription: String
  • Challenge Responder object.

    Declaration

    Swift

    open var responder: ChallengeResponder?

Initializers

  • Initializer assigning responder and challenge.

    Declaration

    Swift

    public convenience init(with challenge: Challenge)

Lifecycle

  • Declaration

    Swift

    override open func setup()

Open methods

WKNavigationDelegate

  • Undocumented

    Declaration

    Swift

    open func webView(_ webView: WKWebView, didFinish navigation: WKNavigation!)
  • Undocumented

    Declaration

    Swift

    open func webView(_ webView: WKWebView, didFail navigation: WKNavigation!, withError error: Error)
  • Undocumented

    Declaration

    Swift

    open func webView(_ webView: WKWebView, didCommit navigation: WKNavigation!)

WKUIDelegate

ChallengeResponderDelegate

  • Undocumented

    Declaration

    Swift

    open func onSuccess(with apiResponse: APIResponse<Challenge.ResponseInfo>)
  • Undocumented

    Declaration

    Swift

    open func onFailure(with error: Error)

WKScriptMessageHandler

  • Undocumented

    Declaration

    Swift

    open func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage)