Skip to content

phunkeler/Plugin.Maui.NearbyConnections

Repository files navigation

Plugin.Maui.NearbyConnections

A .NET MAUI plugin for peer-to-peer (P2P) connectivity with nearby devices by unifying Google's Nearby Connections and Apple's Multipeer Connectivity capabilities.


Supported Platforms

Platform Minimum Version Supported
iOS Not set in project.
Android Not set in project

Dependencies

Getting Started

Plugin.Maui.NearbyConnections is available on nuget.org

dotnet

dotnet add package Plugin.Maui.NearbyConnections -s https://api.nuget.org/v3/index.json

Usage

MauiProgram.cs

public static MauiApp CreateMauiApp()
    => MauiApp.CreateBuilder()
        .UseMauiApp<App>()
        .AddNearbyConnections() // Defaults
        .Build();
public static MauiApp CreateMauiApp()
    => MauiApp.CreateBuilder()
        .UseMauiApp<App>()
        .AddNearbyConnections(options => // Custom Config
        {
            options.ServiceName = "MyService";
            options.AutoAcceptConnections = false;
        })
        .Build();

Acknowledgements

Releases

No releases published

Packages

No packages published