Google has released a preview of their new Android Architecture Components that are intended to simplify the development and maintenance of Android apps. Does Xamarin plan to provide .NET versions (wrappers?) for these new APIs?
I am interested in the answer for this question as well
Any news? I am also interested and I wonder if I can use these APIs in Xamarin Android.
In beta - https://www.nuget.org/packages/Xamarin.Android.Arch.Core.Common/26.1.0-beta1
Wow, great! Thank you.
I am looking for the ViewModelProviders class in Xamarin.Android.Arch.* namespaces but I can't seem to find it.
It seems to me like it should be the preferred way of tying the C# ViewModel lifecycle to the Activity / Fragment's lifecycle.
Or how do you guys usually handle the ViewModel's lifecycle and the Activity / Fragment's lifecycle?
@CosminStirbu I think I am stalking you. Here and on the GH Issue page as well:
I'd really like to see this get it's bindings.
@AdamVenturella - I'm glad you also see value in leveraging the ViewModelLocator. So far I haven't seen a proper Xamarin example that takes care of the ViewModel's scope relative to the Activity / Fragment's lifecycle.
Activity / Fragment's
What we've done on previous Java Android projects was to leverage the Loader mechanism.
So until the bindings are made, I think you can also use that.
You can find a reference article here by Googleing presenter-surviving-orientation-changes-with-loaders (for some reason I don't have enough XP to include links in my forum posts .......)
Xamarin Inc., as a wholly-owned Microsoft subsidiary acting as a separate legal entity, adheres to the Microsoft Privacy Statement: Privacy & cookies