MvvmCross DataService in an Android Broadcast listener

后端 未结 1 383
独厮守ぢ
独厮守ぢ 2021-01-21 01:44

I am currently venturing into the MvvmCross realm and making some good headway, but ran into something that I have been unable to figure out on my own. I currently have an andr

1条回答
  •  花落未央
    2021-01-21 02:27

    The easiest way to do this is probably to just request that the full Setup is completed during the first part of OnCreate for your service:

            var setupSingleton = MvxAndroidSetupSingleton.EnsureSingletonAvailable(ApplicationContext);
            setupSingleton.EnsureInitialized();
    

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