Exemplo n.º 1
0
        public override void OnViewCreated(View view, Bundle savedInstanceState)
        {
            try
            {
                base.OnViewCreated(view, savedInstanceState);

                InitComponent(view);
                SetRecyclerViewAdapters(view);

                LoadPost();

                GlobalContext.GetOneSignalNotification();
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
        public override void OnViewCreated(View view, Bundle savedInstanceState)
        {
            try
            {
                base.OnViewCreated(view, savedInstanceState);

                InitComponent(view);
                SetRecyclerViewAdapters();

                LoadPost(true);

                GlobalContext.GetOneSignalNotification();
            }
            catch (Exception exception)
            {
                Methods.DisplayReportResultTrack(exception);
            }
        }
Exemplo n.º 3
0
        public override void OnViewCreated(View view, Bundle savedInstanceState)
        {
            try
            {
                base.OnViewCreated(view, savedInstanceState);

                InitComponent(view);
                SetRecyclerViewAdapters(view);

                LoadPost();

                //Start Updating the news feed every few minus
                MainHandler.PostDelayed(new ApiPostUpdaterHelper(Activity, MainRecyclerView, MainHandler), 20000);

                GlobalContext.GetOneSignalNotification();
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
            }
        }
Exemplo n.º 4
0
        public override View OnCreateView(LayoutInflater inflater, ViewGroup container, Bundle savedInstanceState)
        {
            try
            {
                View view = inflater.Inflate(Resource.Layout.LastMessagesLayout, container, false);

                try
                {
                    OnlineUsers = MainSettings.SharedData.GetBoolean("notifications_key", true);
                }
                catch (Exception e)
                {
                    Console.WriteLine(e);
                }

                InitComponent(view);
                SetRecyclerViewAdapters();

                Get_LastChat();

                // Run timer
                TimerCallingTimePassed = new Timer {
                    Interval = 1000
                };
                TimerCallingTimePassed.Elapsed += TimerCallingTimePassed_Elapsed;
                TimerCallingTimePassed.Enabled  = true;

                GlobalContext?.GetOneSignalNotification();

                return(view);
            }
            catch (Exception exception)
            {
                Console.WriteLine(exception);
                return(null);
            }
        }