Permalink
Switch branches/tags
Nothing to show
Find file Copy path
fa3d2c0 Jul 17, 2018
1 contributor

Users who have contributed to this file

36 lines (26 sloc) 646 Bytes
using System;
using Xamarin.Forms;
using System.Reactive.Disposables;
namespace ReactiveExtensionExamples.Pages
{
public class PageBase : ContentPage
{
protected readonly CompositeDisposable SubscriptionDisposables = new CompositeDisposable ();
public PageBase ()
{
SetupUserInterface ();
}
protected virtual void SetupUserInterface () {}
protected virtual void SetupReactiveExtensions () {}
protected override void OnAppearing ()
{
SetupReactiveExtensions ();
base.OnAppearing ();
}
protected override void OnDisappearing ()
{
SubscriptionDisposables.Clear ();
base.OnDisappearing ();
}
}
}