<% if (isJekyll) { %>--- title: ns native add java position: 2 ---<% } %>
Adds a newly generated Java file, which includes a class with the specified name, placing it in the appropriate directory.
| Usage | Synopsis |
|---|---|
| Java | $ ns native add java <Java class name> |
<Java class name>is the fully qualified name of theClassto create, e.g.org.nativescript.SomeClass
<% if(isHtml) { %>
| Command | Description |
|---|---|
| native add swift | Generates and adds a Swift file containing a class of the given name. |
| native add objective-c | Generates and adds Objective-C files containing an interface of the given name. |
| native add java | Generates and adds a Java file containing a class of the given name. |
| native add kotlin | Generates and adds a Kotlin file containing a class of the given name. |
| <% } %> |