GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing docs.nativescript.org — Adding Java/Kotlin Code to an application | NativeScript NativeScript 9.1 Released → V8 14.9, Vite 8 HMR, built for rapid agentic visual iteration Dig in→
Are you an LLM? You can read better optimized documentation at /guide/native-code/android.md for this page in Markdown format Adding native code to an application There are different ways to add native code to an Android application. You can add bash Adding Java code Define the java file in java Given the example above, your JavaScript or TypeScript code can reference the Java code by using the full class name: typescript Note When using TypeScript, you may need to generate typings, or alternatively declare the top level package name as typescript Adding Kotlin code Configuring Kotlin Enable kotlin When using Kotlin, it must be enabled first. Set ini Configure Kotlin version Configure the version of Kotlin to use in the application in groovy Using kotlin Define the kotlin file in kotlin Given the example above, your JavaScript or TypeScript code can reference the Kotlin code by using the full class name: typescript Note When using TypeScript, you may need to generate typings, or alternatively declare the top level package name as typescript
On this page Edit this pageLast updated: |
| You are visitor 01402503 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |