Using MvvmCross from content providers and activities

后端 未结 1 815
暖寄归人
暖寄归人 2021-01-06 03:31

I am trying to use MvvmCross v3 in one of my applications which consists of activities, content providers and broadcast receivers. However, I am not quite succeeding.

<
相关标签:
1条回答
  • 2021-01-06 04:04

    Short answer (I'm in an airport on mobile)

    • all the mvx android views will check the setup singleton has been created - https://github.com/slodge/MvvmCross/blob/vnext/Cirrious/Cirrious.MvvmCross.Droid/Platform/MvxAndroidSetupSingleton.cs (vnext tree - but similar on v3)

    • so if you are creating a setup, but not setting this singleton, then you will get a second setup created when you first show a view

    i suspect you can just get your setup created via the singleton class, but if this isn't flexible enough for your needs, then please log an issue on github

    would also love to see some blogging about this - I've not used custom content providers much (at all!)

    0 讨论(0)
提交回复
热议问题