We are organizing the first ever ReactiveUI virtual conference, register and join us on September 19th!

Xamarin Android

Ensure that you install ReactiveUI.AndroidSupport into your applications.

Your viewmodels should inherit from ReactiveObject

Use WireUpControls

Use IActivatableViewModel and WhenActivated for lifecycle

Keep references to your subscriptions

Use disposables to manage lifetime, scope and resources:

Don't use eventhandlers, use the extension methods shipped in reactiveui.events instead

Use your normal Android concepts that you would usually use in Android development, we have some base classes which you should use as they expose observables such as Changed, Changing and Deactivated that can be used for composition.

There's also some extension methods which will make your life easier