我是 MvvmCross 的新手,我想在我的模型/视图模式中使用我的插件。我用的是 v3。
在某些示例中,我看到了 IMvxServiceConsumer 和 GetService,但我猜这是 vNext 的注释,但在 v3 中似乎有所不同。
那么,我该怎么做呢?
谢谢
IMvxServiceConsumer<T>
and GetService<T>
were replaced with Mvx.Resolve<T>
in v3.
Further, v3 provides constructor injection of dependencies - see http://slodge.blogspot.co.uk/2013/03/v3-new-viewmodel-lifecycle.html for information about how this decision was reached.
For plugins, N=8 in the tutorial series gives a quick and easy introduction to using the Location plugin. For more info see:
If you want to write a new plugin, then :