Application Settings API

The Application Settings API enables you to retrieve and update certain settings of an application. Using the application settings functions, you can read the values that you have set for an application and write new values. For instance, you can choose to define different views for widgets and configure themes.

IMPORTANT: The App Settings APIs are only available on the iOS platform.
To use these APIs, you must create an appSettings.xml file in the Project Workspace, and then add the code for the APIs in the file.

The Application Settings API uses kony.application.settings Namespace and the following API elements.

Function Description
kony.application.settings.read Enables your app to read the configuration values associated with specified keys.
kony.application.settings.write Enables your app to write the configuration values associated with specified keys.
 

To know the current settings of the application, use the kony.application.settings.read function. This function provides information about the various app settings and their values. For example, you can read the settings such as themes and widget views. If you want to modify these settings, use the kony.application.settings.write function. This function will enable you to replace the existing values of the app settings with the new values.

To view the functionality of the Application Settings API in action, download the sample application from the link below. Once the application is downloaded, build and preview the application using the Quantum App.