Automobile.Mobile.iOS.Automation.iOSWebViewController.iOSWebViewController C# (CSharp) Method

iOSWebViewController() public method

public iOSWebViewController ( ConnectionType connType, string connString ) : System
connType ConnectionType
connString string
return System
        public iOSWebViewController(ConnectionType connType, string connString)
        {
            // Initialize the webview and add it to this view
            var web = new UIWebView(UIScreen.MainScreen.Bounds);
            Add(web);

            // Create the device and start the automation thread
            var device = new iOSDevice(UIDevice.CurrentDevice, web, connType, connString);
            new Thread(device.BeginAutomation).Start();
        }
iOSWebViewController