This document discusses how to create a native interface in Codename One to allow calling native OS code from a Codename One app. It explains that native interfaces allow invoking native OS code and wrapping it in a library. It describes how native code differs across platforms like Android, iOS, Windows, and JavaScript. It provides examples of generating native interface stubs, implementing them for different platforms, and using the native interface code from a Codename One app. Build hints can be used to inject additional native behavior by modifying the app manifest or plist.
11. namespace com.codename1.app.nativedemo{
public class CallNativeCodeImpl : ICallNativeCodeImpl {
public string doThisInNative(String param, int param1) {
return null;
}
public bool isSupported() {
return false;
}
}
}
Windows Stub