# UWP Native Interfaces - Mix C# and Java

DevFeed: [UWP Native Interfaces - Mix C# and Java](<https://devfeed.tech/articles/uwp-native-interfaces-mix-c-and-java-19655.md>)

Original publisher: [Read original article](<https://www.codenameone.com/blog/uwp-native-interfaces-mix-c-java/>)

Author: Steve Hannah

Published: 2016-11-15T00:00:00Z

Content type: tutorial

Language: en

Sources: [CodeName One](<https://devfeed.tech/sources/codename-one.md>)

Topics: [Universal Windows Platform](<https://devfeed.tech/topics/uwp.md>), [C#](<https://devfeed.tech/topics/csharp.md>), [Java](<https://devfeed.tech/topics/java.md>), [Windows](<https://devfeed.tech/topics/windows.md>)

Tags: [c-sharp](<https://devfeed.tech/tags/c-sharp.md>), [desktop](<https://devfeed.tech/tags/desktop.md>), [java](<https://devfeed.tech/tags/java.md>), [ui](<https://devfeed.tech/tags/ui.md>), [windows](<https://devfeed.tech/tags/windows.md>)

## AI overview

A historical Codename One tutorial explains how to implement native interfaces for its UWP target using C# alongside Java, including parameter types, peer components, and UI-thread requirements. It also describes a proof-of-concept update to CN1WebSockets for Windows and other platforms. The UWP target was later discontinued in release 7.0.229, so the setup instructions no longer apply to current projects.

## Source excerpt

Historical note: Codename One's UWP target was discontinued in release 7.0.229. This post is preserved for historical context only, and its build/setup instructions no longer apply to current Codename One projects. The next plugin update will add support for native interfaces in UWP. This opens the door for you to really dig into the native features of Windows if you wish to do so. Crucially, this will also allow us to push forward with windows support on some of the cn1libs that require native functionality. As a proof of concept, I have updated the CN1WebSockets library to support windows. It now works on all major platforms: iOS, Android, Javascript, UWP (Windows 10), Simulator, and Desktop builds. If you require sockets in your app, I highly recommend web sockets, as it is the most portable option currently available.