简体   繁体   English

使用MvvmCross.Plugin.Location.Fused

[英]Working with MvvmCross.Plugin.Location.Fused

MvvmCross.Plugin.Location.Fused

Trying to get all the Mvvmcross plug-in work in my demo project. 尝试在我的演示项目中获得所有Mvvmcross plug-in工作。

The sample project come from here 示例项目来自这里

https://github.com/MvvmCross/MvvmCross-Samples/tree/master/XPlatformMenus https://github.com/MvvmCross/MvvmCross-Samples/tree/master/XPlatformMenus

Once I have add it from nuget 一旦我从nuget添加它

MvvmCross.Plugin.Location.Fused

Severity Code Description Project File Line Suppression State Error CS0305 严重性代码说明项目文件行抑制状态错误CS0305

Using the generic type 'MvxPluginBootstrapAction' requires 1 type arguments 使用通用类型'MvxPluginBootstrapAction'需要1个类型参数

XPlatformMenus.Droid XPlatformMenus.Droid

There isn't much docs for the all those plugin . 所有这些插件的文档都很少。

Hopefully I can get it up and running and see what it really can do. 希望我可以启动并运行它,看看它真正可以做什么。

It needs to be MvxLoaderPluginBootstrapAction instead of MvxPluginBootstrapAction 它必须是MvxLoaderPluginBootstrapAction而不是MvxPluginBootstrapAction

public class LocationPluginBootstrap
    : MvxLoaderPluginBootstrapAction<MvvmCross.Plugins.Location.PluginLoader, MvvmCross.Plugins.Location.Fused.Droid.Plugin>
{
}

This has been fixed, but is not released, yet: https://github.com/MvvmCross/MvvmCross-Plugins/commit/1ff418ca2af0ede8113b6478000522b7631d1030 此问题已修复,但尚未发布: https : //github.com/MvvmCross/MvvmCross-Plugins/commit/1ff418ca2af0ede8113b6478000522b7631d1030

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM