locked
How to perform Reload or Refresh on a Page through the OnStart (), OnSleep, OnResume RRS feed

  • Question

  • User244419 posted

    When I create a xamarin project; We have App.cs which is responsible for the system;

    The App.cs in my system is responsible for calling the MainPage = new NavigationPage (new HomePage ()) page;

    This application will be used by more than one people;

    The HomePage () page has several buttons with the on and off function; These buttons access a HtttpClient that records the status of the buttons;

    I need to make other users know which button is on and off;

    We have the functions within App.cs that can assist in this;

    • OnStart ()
    • OnSleep ()
    • OnResume ()

    That can help you carry out REFRESH on the HomePage () page of my application.

    Question how to make XAMARIN update my CURRENT page when the mobile device enters the state:

    Example below;

    • OnStart () ---------> REFRESH -----------> HomePage ()
    • OnSleep () ---------> REFRESH -----------> HomePage ()
    • OnResume () ---------> REFRESH -----------> HomePage ()

    I'm waiting

    Friday, March 31, 2017 1:08 AM

All replies

  • User253793 posted

    @Cyberlacs you may need to expand your question. What is on the HomePage that needs refreshing.

    This may provide some assistance

    https://developer.xamarin.com/guides/xamarin-forms/user-interface/listview/interactivity/#PulltoRefresh

    Friday, March 31, 2017 2:21 AM
  • User244419 posted

    The screen has only BUTTONS

    User 1 with Cellphone One triggers BUTTON 1

    User 2 has to know that BUTTON 1 has been triggered

    Both users will be able to turn the buttons off, and both should know which buttons were pressed.

    OnStart (), OnSleep (), OnResume () in some of these methods can make refesh reload the current screen?

    Friday, March 31, 2017 3:41 AM
  • User244419 posted

    @magic67 Is there any way to perform this auto refresh? I'm waiting

    Friday, March 31, 2017 1:02 PM