NativeFunction APIs

Introduction

The Native Function API is a module that contains APIs for a piece of native functionality. The primary purpose of this feature is to facilitate the native functions individually rather than packaging in the upcoming product versions or in the plug-ins. These modules are delivered as zip files, which can be imported directly into Quantum Visualizerto enable the functionality and use it, instead of waiting for the next version of the product or plug-in for the functionality.

The Native Function APIs wrap the native APIs into JavaScript functions. You can then use these JavaScript functions in your Quantum Visualizerapplication to execute the functionality of the native API through your JavaScript code.

To use these APIs, you need to follow certain guidelines. For the iOS platform guidelines, see iOS Guidelines and for the Android platform, see Android Guidelines.

NOTE: As Native Function APIs are dependent on the underlying SDK versions, make sure that the appropriate Native Function APIs are imported to the Quantum Visualizer. Otherwise build errors may occur because of the compatibility issues.

NOTE: The Native Function APIs do not work in the DEBUG mode. They work only in the RELEASE mode.

This section covers the following topics.