Example #1
0
        //SV Added
        //public static MobileServiceClient MobileService = new MobileServiceClient("https://xdogserver.azurewebsites.net");

        protected override async void OnCreate(Bundle bundle)
        {
            AppCenter.Start("fd3b9965-2833-481b-a812-3cb085f66bc8", typeof(Analytics), typeof(Crashes));

            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);
            #region SV ADDED Init

            VideoViewRenderer.Init();
            global::Xamarin.Forms.Forms.Init(this, bundle);
            Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init();

            var width   = Resources.DisplayMetrics.WidthPixels;
            var height  = Resources.DisplayMetrics.HeightPixels;
            var density = Resources.DisplayMetrics.Density;

            App.ScreenWidth  = (width - 0.5f) / density;
            App.ScreenHeight = (height - 0.5f) / density;

            #endregion

            LoadApplication(new App());
        }
Example #2
0
        public override bool FinishedLaunching(UIApplication application, NSDictionary launchOptions)
        {
            // create a new window instance based on the screen size
            Window = new UIWindow(UIScreen.MainScreen.Bounds);

            // If you have defined a root view controller, set it here:
            // Window.RootViewController = myViewController;

            Forms.Init();

            //Initialize all the custom renderers
            new SfRotatorRenderer();
            AnimationViewRenderer.Init();
            ImageCircleRenderer.Init();
            SfListViewRenderer.Init();
            SfRadialMenuRenderer.Init();
            VideoViewRenderer.Init();

            LoadApplication(new App(new IociOSModule()));

            // make the window visible
            //Window.MakeKeyAndVisible();

            var result = base.FinishedLaunching(application, launchOptions);

            application.KeyWindow.TintColor = Helper.ToUIColor("15C44B");

            return(result);
        }
Example #3
0
 public void InitializePlugins(Bundle bundle)
 {
     CachedImageRenderer.Init(false);
     VideoViewRenderer.Init();
     Xamarin.FormsGoogleMaps.Init(this, bundle);
     UserDialogs.Init(this);
 }
 //
 // This method is invoked when the application has loaded and is ready to run. In this
 // method you should instantiate the window, load the UI into it and then make the window
 // visible.
 //
 // You have 17 seconds to return from this method, or iOS will terminate your application.
 //
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     global::Xamarin.Forms.Forms.Init();
     LoadApplication(new App());
     VideoViewRenderer.Init();
     return(base.FinishedLaunching(app, options));
 }
Example #5
0
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            // SearchBar styling
            UISearchBar.Appearance.BarTintColor    = UIColor.FromRGB(7, 7, 7);
            UISearchBar.Appearance.BackgroundColor = UIColor.FromRGB(7, 7, 7);

            // NavigationBar styling
            UINavigationBar
            .Appearance
            .SetTitleTextAttributes(
                new UITextAttributes()
            {
                Font = UIFont.FromName("HelveticaNeue-CondensedBlack", 21)
            });

            // RefreshControl styling
            UIRefreshControl.Appearance.TintColor = UIColor.White;

            // TableView styling
            UITableView.Appearance.SeparatorColor = UIColor.FromRGB(7, 7, 7);

            global::Xamarin.Forms.Forms.Init();
            CarouselViewRenderer.Init();
            VideoViewRenderer.Init();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Example #6
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            //var options = new FirebaseOptions.Builder()
            //.SetApplicationId("simplemessager")
            //.SetApiKey("AIzaSyCg847Wo53-3PLgUpkMWNpda9yL3qR-7HQ")
            //.SetDatabaseUrl("https://simplemessager.firebaseio.com/")
            //// .SetGcmSenderId(GcmSenderId)
            //.Build();

            //var firebaseOptions = new Firebase.Analytics.Options("//GoogleService-Info.plist");

            // RegisterDeal.mainActivity = this;

            Firebase.Analytics.App.Configure();

            VideoViewRenderer.Init();
            // QuickbloxPlatform.Init();

            global::Xamarin.Forms.Forms.Init();

            AppDelegate.SelfDelegate = this;

            VideoProvider = new VideoChatProvider()
            {
                SubscribeToSelf = false
            };
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Example #7
0
        /*
         * Resets UI elements. Used after conversation has ended.
         */
        void reset()
        {
            if (participantVideoRenderer != null)
            {
                //participantVideoRenderer.OnPause ();
                participantVideoRenderer = null;
            }
            localContainer.RemoveAllViews();
            localContainer = FindViewById <ViewGroup> (Resource.Id.localContainer);
            participantContainer.RemoveAllViews();

            if (conversation != null)
            {
                conversation.Dispose();
                conversation = null;
            }
            outgoingInvite = null;

            muteMicrophone = false;
            muteActionFab.SetImageDrawable(ContextCompat.GetDrawable(this, Resource.Drawable.ic_mic_green_24px));

            pauseVideo = false;
            localVideoActionFab.SetImageDrawable(ContextCompat.GetDrawable(this, Resource.Drawable.ic_videocam_green_24px));
            if (conversationsClient != null)
            {
                conversationsClient.AudioOutput = AudioOutput.Headset;
            }

            setCallAction();
            startPreview();
        }
Example #8
0
        public MainPage()
        {
            this.InitializeComponent();

            VideoViewRenderer.Init();

            LoadApplication(new VideoPlayerApp.App());
        }
 //
 // This method is invoked when the application has loaded and is ready to run. In this
 // method you should instantiate the window, load the UI into it and then make the window
 // visible.
 //
 // You have 17 seconds to return from this method, or iOS will terminate your application.
 //
 public override bool FinishedLaunching(UIApplication app, NSDictionary options)
 {
     global::Xamarin.Forms.Forms.Init();
     LoadApplication(new App());
     AppCenter.Start("66a3626c-c0f4-4ab8-8771-f0239389913b",
                     typeof(Analytics), typeof(Crashes));
     VideoViewRenderer.Init();
     return(base.FinishedLaunching(app, options));
 }
Example #10
0
        protected override void OnCreate(Bundle bundle)
        {
            base.OnCreate(bundle);

            VideoViewRenderer.Init();

            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App());
        }
Example #11
0
        public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions)
        {
            VideoViewRenderer.Init();
            global::Xamarin.Forms.Forms.Init();

            LoadApplication(new App());

            return(base.FinishedLaunching(uiApplication, launchOptions));
        }
Example #12
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);
            VideoViewRenderer.Init();
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
            LoadApplication(new App());
        }
Example #13
0
 protected override void OnCreate(Bundle savedInstanceState)
 {
     TabLayoutResource = Resource.Layout.Tabbar;
     ToolbarResource   = Resource.Layout.Toolbar;
     base.OnCreate(savedInstanceState);
     VideoViewRenderer.Init();
     global::Xamarin.Forms.Forms.Init(this, savedInstanceState);
     ConfigurationManager.Initialise(PCLAppConfig.FileSystemStream.PortableStream.Current);
     LoadApplication(new App());
 }
Example #14
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            Forms.Init();
            ImageCircleRenderer.Init();
            VideoViewRenderer.Init();

            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            VideoViewRenderer.Init();
            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new ELearningApp.App());

            //FormsVideoPlayer.Init();
            HtmlLabelRenderer.Initialize();

            return(base.FinishedLaunching(app, options));
        }
Example #16
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            //CrossMediaManager.Current.MediaNotificationManager = new zoMediaNotificationManagerImplementation(Android.App.Application.Context, typeof(MediaPlayerService));
            VideoViewRenderer.Init();
            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App());
        }
Example #17
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;

            ToolbarResource = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            HtmlLabelRenderer.Initialize();

            Window.AddFlags(WindowManagerFlags.KeepScreenOn);

            Xamarin.Essentials.Platform.Init(this, bundle);

            Rg.Plugins.Popup.Popup.Init(this, bundle);

            //AnimationViewRenderer.Init();

            global::Xamarin.Forms.Forms.Init(this, bundle);

            CrossCurrentActivity.Current.Init(this, bundle);

            if (CrossMediaManager.Current == null)
            {
                CrossMediaManager.Current = new MediaManagerImplementation();
            }

            // use custom Android notifications
            CrossMediaManager.Current.MediaNotificationManager = new PVLMediaNotificationManager(Android.App.Application.Context, typeof(ExoPlayerAudioService));
            //CrossMediaManager.Current.MediaNotificationManager = new PVLMediaNotificationManager(Android.App.Application.Context, typeof(MediaPlayerService));

            // use exoPlayer
            MediaManagerImplementation current = CrossMediaManager.Current as MediaManagerImplementation;
            var exoPlayer = new ExoPlayerAudioImplementation(current.MediaSessionManager);

            CrossMediaManager.Current.AudioPlayer = exoPlayer;

            CrossNotifications.Current.GetType();

            TintedImageRenderer.Init();

            var s = new SfPickerRenderer();

            VideoViewRenderer.Init();

            CarouselViewRenderer.Init();

            FFImageLoading.Forms.Platform.CachedImageRenderer.Init(false);

            BlobCache.ApplicationName = "Medit";

            LoadApplication(new App());
        }
Example #18
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            var options = new FirebaseOptions.Builder()
                          .SetApplicationId("simplemessager")
                          .SetApiKey("AIzaSyCg847Wo53-3PLgUpkMWNpda9yL3qR-7HQ")
                          .SetDatabaseUrl("https://simplemessager.firebaseio.com/")
                          // .SetGcmSenderId(GcmSenderId)
                          .Build();

            instance = this;

            FirebaseApp.InitializeApp(this, options);
            VideoViewRenderer.Init();
            // QuickbloxPlatform.Init();
            global::Xamarin.Forms.Forms.Init(this, bundle);

            var layoutParams = new LinearLayout.LayoutParams(
                Resources.DisplayMetrics.WidthPixels, Resources.DisplayMetrics.HeightPixels);

            //App.NetworkProvider.GetSessionInfo();

            this.Receiver = new AcceptInvitationListener();

            isPublished = false;

            LoadApplication(new App());

            try
            {
                GcmClient.CheckDevice(this);
                GcmClient.CheckManifest(this);

                System.Diagnostics.Debug.WriteLine("Registering...");

                GcmClient.Register(this, PushHandlerBroadcastReceiver.SENDER_IDS);
                var isRegistered         = GcmClient.IsRegistered(this);
                var isOnServerRegistered = GcmClient.IsRegisteredOnServer(this);
            }
            catch (Java.Net.MalformedURLException)
            {
                CreateAndShowDialog("There was an error creating the client.Verify the URL.", "Error");
            }
            catch (Exception e)
            {
                CreateAndShowDialog(e.Message, "Error");
            }
        }
Example #19
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //

        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            //plugin para inicializar libreria de popup
            Rg.Plugins.Popup.Popup.Init();
            ZXing.Net.Mobile.Forms.iOS.Platform.Init();

            VideoViewRenderer.Init();

            global::Xamarin.Forms.Forms.Init();
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Example #20
0
        public override bool FinishedLaunching(UIApplication uiApplication, NSDictionary launchOptions)
        {
            global::Xamarin.Forms.Forms.Init();

            VideoViewRenderer.Init();

            App.ScreenWidth  = (double)UIScreen.MainScreen.Bounds.Width;
            App.ScreenHeight = (double)UIScreen.MainScreen.Bounds.Height;

            LoadApplication(new App());

            return(base.FinishedLaunching(uiApplication, launchOptions));
        }
Example #21
0
        protected override void OnCreate(Bundle bundle)
        {
            base.Window.RequestFeature(WindowFeatures.ActionBar);

            // Name of the MainActivity theme you had there before.
            // Or you can use global::Android.Resource.Style.ThemeHoloLight
            base.SetTheme(Resource.Style.MainTheme);
            // Forms.SetFlags("FastRenderers_Experimental");

            // Window.AddFlags(WindowManagerFlags.TranslucentNavigation);
            // Window.AddFlags(WindowManagerFlags.TranslucentStatus);

            ImageService.Instance.Initialize();
            CachedImageRenderer.Init(false);
            // CachedImageRenderer.Init(enableFastRenderer: true);



            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            VideoViewRenderer.Init();
            // Forms.SetFlags("FastRenderers_Experimental");

            global::Xamarin.Forms.Forms.Init(this, bundle);
            FormsControls.Droid.Main.Init(this);
            Rg.Plugins.Popup.Popup.Init(this, bundle);
            LoadApplication(new App());


            global::ZXing.Net.Mobile.Forms.Android.Platform.Init();
            //ConnectivityManager connectivityManager = (ConnectivityManager)GetSystemService(ConnectivityService);
            //NetworkInfo networkInfo = connectivityManager.ActiveNetworkInfo;
            //bool isOnline = networkInfo.IsConnected;

            //bool isWifi = networkInfo.Type == ConnectivityType.Wifi;
            //if (isWifi)
            //{
            //    //DisplayAlert("massage", "Connected", "ok");
            //    Log.Debug("tag","connected");
            //}
            //else
            //{
            //    Log.Debug("tag", "fail");
            //}
            /////////////////////////////////////////
            //AppDomain.CurrentDomain.UnhandledException += domainExceptionHandler;
            // AndroidEnvironment.UnhandledExceptionRaiser += Workbook_UnhandledExceptionRaiser;
        }
Example #22
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);
            VideoViewRenderer.Init();
            global::Xamarin.Forms.Forms.Init(this, bundle);

            HtmlLabelRenderer.Initialize();
            //FormsVideoPlayer.Init();

            LoadApplication(new ELearningApp.App());
        }
Example #23
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            // Rg.Plugins.Popup.Popup.Init(this, bundle);
            VideoViewRenderer.Init();

            global::Xamarin.Forms.Forms.Init(this, bundle);

            LoadApplication(new App());
        }
Example #24
0
 /*
  * LocalMedia listener
  */
 ILocalMediaListener localMediaListener()
 {
     return(new LocalMediaListener {
         LocalVideoTrackAddedHandler = (conversation, localVideoTrack) => {
             conversationStatusTextView.Text = "onLocalVideoTrackAdded";
             localVideoRenderer = new VideoViewRenderer(this, localContainer);
             localVideoTrack.AddRenderer(localVideoRenderer);
         },
         LocalVideoTrackRemovedHandler = (conversation, localVideoTrack) => {
             conversationStatusTextView.Text = "onLocalVideoTrackRemoved";
             localContainer.RemoveAllViews();
         }
     });
 }
Example #25
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);
            VideoViewRenderer.Init();

            AppCenter.Start("bc5eb11d-cce1-4ca8-b4e5-028a4079459c",
                            typeof(Analytics), typeof(Crashes));


            global::Xamarin.Forms.Forms.Init(this, bundle);
            LoadApplication(new App());
        }
Example #26
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            #region SV ADDED Init
            VideoViewRenderer.Init();
            global::Xamarin.Forms.Forms.Init();
            global::Xamarin.FormsMaps.Init();
            Microsoft.WindowsAzure.MobileServices.CurrentPlatform.Init();
            App.ScreenWidth  = UIScreen.MainScreen.Bounds.Width;
            App.ScreenHeight = UIScreen.MainScreen.Bounds.Height;

            #endregion
            LoadApplication(new App());

            return(base.FinishedLaunching(app, options));
        }
Example #27
0
        protected override void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            VideoViewRenderer.Init();

            global::Xamarin.Forms.Forms.Init(this, bundle);

            //Xamarians.MediaPlayer.Droid.VideoPlayerRenderer.Init(this);
            Xamarin.Forms.DependencyService.Register <LaunchAppDroid>();

            LoadApplication(new App());
        }
Example #28
0
        //
        // This method is invoked when the application has loaded and is ready to run. In this
        // method you should instantiate the window, load the UI into it and then make the window
        // visible.
        //
        // You have 17 seconds to return from this method, or iOS will terminate your application.
        //
        public override bool FinishedLaunching(UIApplication app, NSDictionary options)
        {
            UINavigationBar.Appearance.BarTintColor = UIColor.FromRGB(43, 132, 211); //bar background
            UINavigationBar.Appearance.TintColor    = UIColor.White;                 //Tint color of button items
            UINavigationBar.Appearance.SetTitleTextAttributes(new UITextAttributes()
            {
                Font      = UIFont.FromName("HelveticaNeue-Light", (nfloat)20f),
                TextColor = UIColor.White
            });
            Forms.Init();
            VideoViewRenderer.Init();
            ImageCircleRenderer.Init();
            LoadApplication(new App());


            return(base.FinishedLaunching(app, options));
        }
Example #29
0
        protected override void OnCreate(Bundle savedInstanceState)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(savedInstanceState);

            VideoViewRenderer.Init();
            global::Xamarin.Forms.Forms.SetFlags("FastRenderers_Experimental");
            global::Xamarin.Forms.Forms.Init(this, savedInstanceState);

            var density = Resources.DisplayMetrics.Density;

            App.ScreenWidth  = (double)((Resources.DisplayMetrics.WidthPixels - 0.5f) / density);
            App.ScreenHeight = (double)((Resources.DisplayMetrics.HeightPixels - 0.5f) / density);

            LoadApplication(new App());
        }
Example #30
0
        protected override async void OnCreate(Bundle bundle)
        {
            TabLayoutResource = Resource.Layout.Tabbar;
            ToolbarResource   = Resource.Layout.Toolbar;

            base.OnCreate(bundle);

            await CrossMedia.Current.Initialize();

            VideoViewRenderer.Init();

            global::Xamarin.Forms.Forms.Init(this, bundle);
            InTheHand.Forms.Platform.Android.InTheHandForms.Init();
            LoadApplication(new App());

            var x = typeof(Xamarin.Forms.Themes.LightThemeResources);

            x = typeof(Xamarin.Forms.Themes.Android.UnderlineEffect);
        }