|
@@ -132,7 +132,7 @@ public abstract partial class ViewModelBase : ObservableObject, IViewModelBase
|
|
|
Navigation.Back();
|
|
|
}
|
|
|
|
|
|
- protected virtual bool OnBackButtonPressed()
|
|
|
+ public virtual bool OnBackButtonPressed()
|
|
|
{
|
|
|
return true;
|
|
|
}
|
|
@@ -176,6 +176,11 @@ public abstract partial class ViewModelBase : ObservableObject, IViewModelBase
|
|
|
return await OnRefresh();
|
|
|
}
|
|
|
|
|
|
+ /// <summary>
|
|
|
+ /// Refresh the data on the screen. If this method returns a value other than <see cref="TimeSpan.Zero"/>, then that value is used to
|
|
|
+ /// schedule the next refresh.
|
|
|
+ /// </summary>
|
|
|
+ /// <returns>Time until next refresh is triggered, or <see cref="TimeSpan.Zero"/> if periodic refreshing is unwanted.</returns>
|
|
|
protected virtual Task<TimeSpan> OnRefresh()
|
|
|
{
|
|
|
return Task.FromResult(TimeSpan.FromSeconds(30));
|