Getting-started

Fundamentals

Advanced

Platforms

Plugins

Samples

Tutorials

Upgrading

Contributing

Getting Started

Edit

In order to help reusability and reduce weight and complexity, MvvmCross introduces the concept of plugins.

Each plugin is suposed to provide abstractions of native functionalities such as camera, geolocation, accelerometer or files. Using plugins is extremely easy! You just need to install a nuget package on your Core project and your platform projects.

There is just one exception, if the plugin is not explicitly referenced somehow in your project it won’t be loaded. So if you use plugins such as Method binding just be sure to add a explicit reference in LinkerPleaseInclude like:

public void Include(MvvmCross.Plugin.MethodBinding.Plugin p)
{
    var _ = p;
}

A note about MvvmCross 5 and below

If you are using a version of MvvmCross less than Mvx 6.0.0, you will need to add the bootstrap file yourself. The bootstrap file is available here

An example bootstrap class would look like:

using System;
using System.Collections.Generic;
using System.Text;
using MvvmCross.Platform.Plugins;

namespace my.namespace.iOS.Bootstrap
{
    public class WebBrowserPluginBootstrap
        : MvxPluginBootstrapAction<MvvmCross.Plugins.WebBrowser.PluginLoader>
    {
    }
}