Skip to content

NativeChannelsNative APIs. One reusable bridge.

Connect C# with Kotlin, Swift, and Windows APIs. Build native integrations with asynchronous calls, binary messages, event streams, and native views.

NativeChannels bridge connecting two endpoints
PREVIEW

Native calls, messages, streams, and views

MAUI integration for Android, iOS, Mac Catalyst, and Windows. Install NativeChannels.Maui 0.1.0-preview.2 from NuGet.org and follow getting started. Platform verification · Roadmap

Planned next: complete Avalonia integration in 0.2, then Uno in 0.3, each across Android, iOS, Windows, desktop macOS, Linux, and browser/WebAssembly. These hosts are not available on main yet.

A small API for a native round trip ​

Register your native adapter once, then inject IChannelService into a service or view model:

csharp
using var channel = channels.GetMethodChannel("sample");
string? reply = await channel.InvokeAsync<string>("echo", "Hello from .NET");

The bundled Kotlin and Swift adapters return the same string. Native code can also call a managed handler and await its result. The getting-started guide includes package setup, module registration, and the complete application service.

Four contracts, practical examples ​

BuildWithExplore
Native function calls with typed resultsMethodChannelCurrency symbol lookup
Binary data transfer with acknowledgementsBasicMessageChannelNative audio playback
Live observations with subscription cleanupEventChannelSystem volume monitor
Embedded native UI with instance isolationPlatformChannelViewNative PDF viewer

Each reference plugin has its own MAUI sample and local package workflow. See examples for setup, what each one teaches, and platform limitations.

Built around explicit lifetimes ​

Channel handles own their requests and registrations. Event enumerations own their subscriptions. Native view connections own their instances and channels. Cancellation, timeouts, errors, and UI dispatch are part of the contract.

Learn channel ownership · Configure requests · Handle failures

Find your next step ​

Android, iOS, Mac Catalyst, and Windows builds are supported through MAUI. Execution coverage and physical-device gaps are recorded in the verification matrix. Browse the guide index for the full documentation.

Released under the MIT License.