public MainPage() { var hybrid = new HybridWebViewRenderer(); InitializeComponent(); SupportedOrientations = SupportedPageOrientation.PortraitOrLandscape; global::Xamarin.Forms.Forms.Init(); LoadApplication(new XHybrid.App()); }
/// <summary> /// Initializes a new instance of the <see cref="NativeWebView"/> class. /// </summary> /// <param name="renderer">The renderer.</param> public NativeWebView(HybridWebViewRenderer renderer, bool enableAdditionalTouchDetector) : base(renderer.Context) { enableDetector = enableAdditionalTouchDetector; if (enableDetector) { var listener = new MyGestureListener(renderer); this.detector = new GestureDetector(this.Context, listener); } }
public override bool FinishedLaunching(UIApplication app, NSDictionary options) { var web = new HybridWebViewRenderer(); var container = new SimpleContainer(); container.Register<IJsonSerializer, JsonSerializer>(); container.Register<IDevice>(AppleDevice.CurrentDevice); Resolver.SetResolver(container.GetResolver()); global::Xamarin.Forms.Forms.Init(); // Code for starting up the Xamarin Test Cloud Agent #if ENABLE_TEST_CLOUD Xamarin.Calabash.Start(); #endif LoadApplication(new App()); return base.FinishedLaunching(app, options); }
/// <summary> /// Initializes a new instance of the <see cref="MyGestureListener"/> class. /// </summary> /// <param name="renderer">The renderer.</param> public MyGestureListener(HybridWebViewRenderer renderer) { this.webHybrid = new WeakReference <HybridWebViewRenderer>(renderer); }
/// <summary> /// Initializes a new instance of the <see cref="NativeWebView"/> class. /// </summary> /// <param name="renderer">The renderer.</param> public NativeWebView(HybridWebViewRenderer renderer) : base(renderer.Context) { var listener = new MyGestureListener(renderer); this.detector = new GestureDetector(this.Context, listener); }
/// <summary> /// Initializes a new instance of the <see cref="Xamarin"/> class. /// </summary> /// <param name="webHybrid">The web hybrid.</param> public Xamarin(HybridWebViewRenderer webHybrid) { this.webHybrid = new WeakReference <HybridWebViewRenderer>(webHybrid); }
/// <summary> /// Initializes a new instance of the <see cref="Client"/> class. /// </summary> /// <param name="webHybrid">The web hybrid.</param> public Client(HybridWebViewRenderer webHybrid) { this.webHybrid = new WeakReference <HybridWebViewRenderer>(webHybrid); }
public CustomClient(HybridWebViewRenderer webHybrid) : base(webHybrid) {}
/// <summary> /// Initializes a new instance of the <see cref="Xamarin"/> class. /// </summary> /// <param name="webHybrid">The web hybrid.</param> public Xamarin(HybridWebViewRenderer webHybrid) { this.webHybrid = webHybrid; }
/// <summary> /// Initializes a new instance of the <see cref="Client"/> class. /// </summary> /// <param name="webHybrid">The web hybrid.</param> public Client(HybridWebViewRenderer webHybrid) { this.webHybrid = webHybrid; }
/// <summary> /// Initializes a new instance of the <see cref="ChromeClient"/> class. /// </summary> /// <param name="webHybrid">The web hybrid.</param> internal ChromeClient(HybridWebViewRenderer webHybrid) { this.webHybrid = webHybrid; }