C# Class Automobile.Mobile.iOS.Automation.iOSWebClient

Handles events from a webview
Inheritance: NSUrlConnectionDelegate, IWebClient
Show file Open project: vistaprint/automobile Class Usage Examples

Public Methods

Method Description
CanAuthenticateAgainstProtectionSpace ( NSUrlConnection connection, NSUrlProtectionSpace protectionSpace ) : bool

Tells the connection it can authenticate

ReceivedAuthenticationChallenge ( NSUrlConnection connection, NSUrlAuthenticationChallenge challenge ) : void

Handle the auth challenge on the connection

ReceivedResponse ( NSUrlConnection connection, NSUrlResponse response ) : void

Should be authed now, start up the webview request again

iOSWebClient ( UIWebView view ) : System

Private Methods

Method Description
LoadError ( object o, EventArgs e ) : void

Error loading, load did not finish

LoadFinished ( object o, EventArgs args ) : void

Load is finished.

LoadStarted ( object o, EventArgs args ) : void

Called when a page starts loading

ShouldStartLoad ( UIWebView view, NSUrlRequest request, UIWebViewNavigationType navType ) : bool

Start a connection to do the https auth, and cancel the webview request if https

Method Details

CanAuthenticateAgainstProtectionSpace() public method

Tells the connection it can authenticate
public CanAuthenticateAgainstProtectionSpace ( NSUrlConnection connection, NSUrlProtectionSpace protectionSpace ) : bool
connection NSUrlConnection
protectionSpace NSUrlProtectionSpace
return bool

ReceivedAuthenticationChallenge() public method

Handle the auth challenge on the connection
public ReceivedAuthenticationChallenge ( NSUrlConnection connection, NSUrlAuthenticationChallenge challenge ) : void
connection NSUrlConnection
challenge NSUrlAuthenticationChallenge
return void

ReceivedResponse() public method

Should be authed now, start up the webview request again
public ReceivedResponse ( NSUrlConnection connection, NSUrlResponse response ) : void
connection NSUrlConnection
response NSUrlResponse
return void

iOSWebClient() public method

public iOSWebClient ( UIWebView view ) : System
view UIWebView
return System