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 Kony Visualizer to 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 Kony Visualizer application 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 Kony 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.

 

Copyright © 2013 Kony, Inc. All rights reserved.