public AmazonWebAuthenticator(AmazonAuthenticator authenticator) { this.Authenticator = authenticator; MonitorAuthenticator(); // // Create the UI // Title = authenticator.Title; if (authenticator.AllowsCancel) { NavigationItem.LeftBarButtonItem = new UIBarButtonItem( UIBarButtonSystemItem.Cancel, delegate { Cancel(); }); } var activityStyle = UIActivityIndicatorViewStyle.White; if (UIDevice.CurrentDevice.CheckSystemVersion(7, 0)) { activityStyle = UIActivityIndicatorViewStyle.Gray; } activity = new UIActivityIndicatorView(activityStyle); NavigationItem.RightBarButtonItem = new UIBarButtonItem(activity); webView = new UIWebView(View.Bounds) { Delegate = new WebViewDelegate(this), AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight, }; View.AddSubview(webView); View.BackgroundColor = UIColor.Black; // // Locate our initial URL // BeginLoadingInitialUrl(); }
public AmazonWebAuthenticator (AmazonAuthenticator authenticator) { this.Authenticator = authenticator; MonitorAuthenticator (); // // Create the UI // Title = authenticator.Title; if (authenticator.AllowsCancel) { NavigationItem.LeftBarButtonItem = new UIBarButtonItem ( UIBarButtonSystemItem.Cancel, delegate { Cancel (); }); } var activityStyle = UIActivityIndicatorViewStyle.White; if (UIDevice.CurrentDevice.CheckSystemVersion (7, 0)) activityStyle = UIActivityIndicatorViewStyle.Gray; activity = new UIActivityIndicatorView (activityStyle); NavigationItem.RightBarButtonItem = new UIBarButtonItem (activity); webView = new UIWebView (View.Bounds) { Delegate = new WebViewDelegate (this), AutoresizingMask = UIViewAutoresizing.FlexibleWidth | UIViewAutoresizing.FlexibleHeight, }; View.AddSubview (webView); View.BackgroundColor = UIColor.Black; // // Locate our initial URL // BeginLoadingInitialUrl (); }
public AmazonController(AmazonAuthenticator authenticator, IRefreshTokenProvider refreshTokenProvider) : base(authenticator, refreshTokenProvider, "Amazon") { }