C# Класс Automobile.Mobile.iOS.Automation.iOSWebClient

Handles events from a webview
Наследование: NSUrlConnectionDelegate, IWebClient
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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

Приватные методы

Метод Описание
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

Описание методов

CanAuthenticateAgainstProtectionSpace() публичный Метод

Tells the connection it can authenticate
public CanAuthenticateAgainstProtectionSpace ( NSUrlConnection connection, NSUrlProtectionSpace protectionSpace ) : bool
connection NSUrlConnection
protectionSpace NSUrlProtectionSpace
Результат bool

ReceivedAuthenticationChallenge() публичный Метод

Handle the auth challenge on the connection
public ReceivedAuthenticationChallenge ( NSUrlConnection connection, NSUrlAuthenticationChallenge challenge ) : void
connection NSUrlConnection
challenge NSUrlAuthenticationChallenge
Результат void

ReceivedResponse() публичный Метод

Should be authed now, start up the webview request again
public ReceivedResponse ( NSUrlConnection connection, NSUrlResponse response ) : void
connection NSUrlConnection
response NSUrlResponse
Результат void

iOSWebClient() публичный Метод

public iOSWebClient ( UIWebView view ) : System
view UIWebView
Результат System