GameChallengeViewController
open class GameChallengeViewController: NibViewController,
    ChallengeResponderDelegate,
    WKScriptMessageHandler,
    WKNavigationDelegate,
WKUIDelegate
                Undocumented
- 
                  
                  
View of the game.
Declaration
Swift
@IBOutlet public var gameView: WKWebView! 
- 
                  
                  
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? 
- 
                  
                  
Initializer assigning responder and challenge.
Declaration
Swift
public convenience init(with challenge: Challenge) 
- 
                  
                  
Declaration
Swift
override open func setup() 
- 
                  
                  
Sets up the game view.
Declaration
Swift
open func setupView() - 
                  
                  
Loads the url in the game view.
Declaration
Swift
open func loadURL(url: URL) - 
                  
                  
Method called when the challenge is loaded.
Declaration
Swift
open func challengeViewDidFinishLoading() - 
                  
                  
Method called to view the result.
Declaration
Swift
open func challengeViewShowResult() - 
                  
                  
Method called to submit the challenge.
Declaration
Swift
open func challengeViewSubmitChallenge() 
- 
                  
                  
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!) 
- 
                  
                  
Undocumented
Declaration
Swift
open func webView(_ webView: WKWebView, runJavaScriptAlertPanelWithMessage message: String, initiatedByFrame frame: WKFrameInfo, completionHandler: @escaping () -> Void) 
- 
                  
                  
Undocumented
Declaration
Swift
open func onSuccess(with apiResponse: APIResponse<Challenge.ResponseInfo>) - 
                  
                  
Undocumented
Declaration
Swift
open func onFailure(with error: Error) 
- 
                  
                  
Undocumented
Declaration
Swift
open func userContentController(_ userContentController: WKUserContentController, didReceive message: WKScriptMessage) 
View on GitHub
        GameChallengeViewController Class Reference