Add or Import Native Function APIs
In Volt MX Iris, you can add native function APIs for use with native UI widgets. These native UI widgets are platform-specific widgets to either iOS or Android, and can be used in an application by placing them in a native UI container widget called a NativeContainer. A native UI container can only be used for native UI widgets; it cannot contain any Volt MX Iris cross-platform widgets. For more information, see Using the Native UI Container.
To add native function APIs, do the following:
- On the Edit menu, click Manage Native Function API(s). The Native Function Interface dialog box displays, and lists any native APIs you have already added or imported into the project.
- Click the platform you want to download an API for, either iOS or Android.
- Click Add. Volt MX Iris retrieves a list of native APIs available for the platform you chose.
- In the Search text box, type keywords that help narrow the scope of the APIs listed.
- From the list, select an API you want, and then click Add.
- Repeat steps 3 through 5 until you have added all the native APIs you want.
- When you are finished adding native APIs, close the dialog box by clicking the X in the upper right corner.
To import native function APIs, do the following:
- On the Edit menu, click Manage Native Function API. The Native Function Interface dialog box displays, and lists any native APIs you have already added or imported into the project.
- Click the platform you want to download an API for, either iOS or Android.
- Click Import.
- Navigate to the location of the native API, select it, and then click OK. The API is added to the list of native APIs associated with your project.
- Repeat steps 3 and 4 until you have imported all the native APIs you want.
- When you are finished importing native APIs, close the dialog box by clicking the X in the upper right corner.