The Application Features section provides access to application-level information and configuration.
It includes functions for retrieving version details and working with application settings.
These endpoints allow clients to adapt behavior based on the application context and configuration.
updateFile (Android, Windows, iOS) #
Updates a file or files that have been downloaded from the license server to the device at the activation of Signatus license.
This function also allows the wizard to update itself. Using this function, new version of the wizard or configuration updates can be distributed to all the devices of the customer. In case multiple files should be checked and updated, please use the function according to the example for update of multiple files.
/**
* @param {Object} arg- Parameter JSON object.
* @returns {void}
*/
function updateFile(arg);Parameters description :
| Name | Required | Format | Description |
|---|---|---|---|
| filename | true/false | string | Name of the file to be updated. Required if filenames is not set |
| filenames | true/false | string | Names of the files to be updated. In case of download or update of multiple files state is ignored. String with comma separated values. Required if filename is not set |
| state | false | string | Specifies the type of the file: – “local” : template PDF files or wizards available in a local channel. Default value – “form” : simple (non-wizard) HTML forms, – “files” : configuration files (certificates etc.), – “profil” : user profile. |
| call | false | string | Callback function name |
| showProgress | false | boolean | if true, a progress dialog will show during file downloading. Default false |
| restartAfterUpdate | false | boolean | if true, a restart dialog will show after the file is successfully downloaded. Default false |
Example for one file only :
const arg = {
"filename": "Wizard.zip",
"showProgress": true,
"restartAfterUpdate": true,
"call": "onUpdateFile"
}
updateFile(arg);
/**
* callback function for updateFile function
* @param res - result in string format
*/
function onUpdateFile (res) {
const result = JSON.parse(res);
}Example for muliple files :
const arg = {
"filenames": "public.der,example.pdf,logo.png",
"restartAfterUpdate": true,
"call": "onUpdateFile"
}
updateFile(arg);
/**
* callback function for updateFile function
* @param res - result in string format
*/
function onUpdateFile (res) {
const result = JSON.parse(res);
}Result example :
{
"parameter": {
"status": "OK",
"message": "Všetko je aktuálne"
}
}getVersion (Android, Windows, iOS) #
Returns the version of the SIGNATUS SDK of Signatus application installed on the device.
/**
* @param {Object} arg- Empty JSON object.
* @returns {string} - Returns version name in string format
*/
function getVersion (arg);Example :
const value = getVersion ({});
// 4.5.1getInfo (Android, Windows, iOS) #
Returns information about the device. This data can be stored as metadata, written to an audit file, or embedded into PDF document properties to provide additional evidence of how the signature was created.
/**
* @param {Object} arg- Parameter JSON object.
* @returns {string} - Returns device info in JSON format as string
*/
function getInfo (arg);Parameters description :
| Name | Required | Format | Description |
|---|---|---|---|
| code | true | string | one of: UID, IPAddress, Version, MACAddress, NetworkType, IMEI, SerialNumber, SimSerialNumber, Manufacturer, Model, AndroidOSVersion == OSVersion, AndroidSDK == SDK, GPS, ApplicationId, Battery , AndroidId == OSId or – All for all info attributes in JSON fromat |
Example :
const arg = {
"code": "All"
}
const res= getInfo(arg);
const result = JSON.parse(res);Result example :
{
"UID": "00000000-57cd-abf3-0000-00000033c587",
"IPAddress": "",
"Version": "4.5.1",
"MACAddress": "",
"NetworkType": "Wi-Fi",
"SerialNumber": "6e4572bbf5ff291c",
"Manufacturer": "samsung",
"Model": "SM-X610",
"OSVersion": "16",
"SDK": "36",
"GPS": "48,89354 18,03928",
"ApplicationId": "com.anasoft.signatus.app",
"Battery": "{\"level\":98,\"isCharging\":true}",
"OSId": "6e4572bbf5ff291c",
"WifiInfo": "4",
"NativeIntent": "false"
}setProfile (Android) #
Set a value of an item inside “My Profile” section of Signatus application installed on the device.
/**
* @param {Object} arg- Parameter JSON object.
* @returns {boolean} - Returns true if the profile were successfully set, false otherwise.
*/
function setProfile(arg);Parameters description :
| Name | Required | Format | Description |
|---|---|---|---|
| code | true | string | Profile attribute key |
| data | true | string | Profile attribute value |
Example :
const arg = {
"code": "name",
"data": "John Doe"
}
const isSucess = setProfile(arg);getProfile (Android) #
Returns the value from an attribute stored within “My Profile” section of Signatus application installed on the device.
/**
* @param {Object} arg- Parameter JSON object.
* @returns {string} - Returns profile attribute value
*/
function getProfile(arg);Parameters description :
| Name | Required | Format | Description |
|---|---|---|---|
| code | true | string | Profile attribute key |
Example :
const arg = {
"code": "name"
}
const value = getProfile(arg);
// John DoedeleteProfile (Android) #
Clears all data stored in the device’s My Profile section. My Profile is typically used to temporarily store information, such as login credentials for a configured REST channel during wizard execution. The wizard can define rules that control when this stored information should be removed.
/**
* @param {Object} arg- Empty JSON object.
* @returns {boolean} - Returns true if the profile were successfully deleted, false otherwise.
*/
function deleteProfile (arg);Example :
const isSucess = deleteProfile({});
setAppConfig (Android, Windows) #
Sets an internal SIGNATUS configuration parameter (not reachable via GUI). This way it is possible to customize the Signatus application from the wizard. Contact us in order to get the desired parameter and possible values to be set.
/**
* @param {Object} arg- Parameter JSON object.
* @returns {boolean} - Returns true if the config were successfully set, false otherwise.
*/
function setAppConfig (arg);Parameters description :
| Name | Required | Format | Description |
|---|---|---|---|
| code | true | string | Config attribute key |
| data | true | string | Config attribute value |
Example of configuring the generated certificate issuer name (instead of the default value CN=SIGNATUS,O=Anasoft APR,L=Bratislava,ST=Slovakia,C=SK)
const arg = {
"code": "cert.issuer.name",
"data": "CN=SIGNATURE,O=Company s.r.o,L=Bratislava,ST=Slovakia,C=SK"
}
const isSucess = setAppConfig (arg);* implementation for Windows is limited for some attributes only (“tag.compulsory.signatures”, “document.zoom.factor”, “cert.issuer.name”)
getAppConfig (Android) #
Gets the value of an internal SIGNATUS configuration parameter (not reachable via GUI). Contact us in order to get the desired parameter and possible output values.
/**
* @param {Object} arg- Parameter JSON object.
* @returns {string} - Returns config attribute value
*/
function getAppConfig (arg);Parameters description :
| Name | Required | Format | Description |
|---|---|---|---|
| code | true | string | Config attribute key |
Example :
const arg = {
"code": "cert.issuer.name"
}
const value = getAppConfig(arg);
setSettings (Android, Windows, iOS) #
Sets one of the SIGNATUS configuration parameters that are also reachable via the settings GUI. This way it is possible to customize the settings of Signatus application from the wizard.
See the getSettings function for the list of codes.
/**
* @param {Object} arg- Parameter JSON object.
* @returns {boolean} - Returns true if the settings were successfully set, false otherwise.
*/
function setSettings (arg);Parameters description :
| Name | Required | Format | Description |
|---|---|---|---|
| code | true | string | Settings attribute key |
| data | true | string | Settings attribute value |
Example :
const arg = {
"code": "draw_mode",
"data": "PEN"
}
const isSucess = setSettings (arg);getSettings (Android, Windows, iOS) #
Returns the current value of a SIGNATUS settings entry (one of the parameters reachable via the settings GUI). Similar to getAppConfig, but in case of function getAppConfig you can get the parameters NOT reachable via GUI.
/**
* @param {Object} arg- Parameter JSON object.
* @returns {string} - Returns config attribute value
*/
function getSettings(arg);Parameters description :
| Name | Required | Format | Description |
|---|---|---|---|
| code | true | string | Key identifying the settings entry |
Example :
const arg = {
"code": "draw_mode"
}
const value = getSettings(arg);
// SYSTEM , PEN or FINGERList of the settings codes:
Codes marked +suffix can be used without a suffix or with a number 1-5 appended to the code. The resulting 6 possible codes are used to distinguish among multiple channels of the same type (e.g. REST download).
| login_enabled | |
| login_username | |
| login_password | |
| login_time_out | |
| form_enabled | |
| browse_file_enabled | |
| browse_web_enabled | |
| browse_cmis_enabled | |
| browse_rest_enabled | |
| browse_google_drive_enabled | |
| upload_cmis_enabled | |
| upload_rest_enabled | |
| upload_local_enabled | |
| upload_google_drive_enabled | |
| browse_file_root | +suffix |
| browse_file_delete | |
| browse_web_url | |
| browse_web_qr_code_scanner | |
| browse_cmis_channel_name | +suffix |
| browse_cmis_server_url | +suffix |
| browse_cmis_username | +suffix |
| browse_cmis_password | +suffix |
| browse_cmis_query | +suffix |
| browse_cmis_copy_to_local | +suffix |
| browse_rest_channel_name | +suffix |
| browse_rest_list_url | +suffix |
| browse_rest_login_url | +suffix |
| browse_rest_oidc_token_endpoint | +suffix |
| browse_rest_ack_url | +suffix |
| browse_rest_username | +suffix |
| browse_rest_password | +suffix |
| browse_rest_copy_to_local | +suffix |
| upload_entry | |
| upload_file_directory | |
| upload_rest_channel_name | |
| upload_web_url | +suffix |
| upload_web_username | +suffix |
| upload_web_password | +suffix |
| upload_web_content_key | +suffix |
| upload_rest_login_url | +suffix |
| upload_rest_oidc_token_endpoint | +suffix |
| upload_web_metadata | +suffix |
| upload_cmis_channel_name | +suffix |
| upload_cmis_server_url | +suffix |
| upload_cmis_username | +suffix |
| upload_cmis_password | +suffix |
| upload_cmis_directory | +suffix |
| anotation_enabled | |
| sign_anywhere_enabled | |
| scanning_enabled | |
| zip_enabled | |
| email_enabled | |
| email_text | |
| email_subject | |
| welcome_time | |
| templates_folder | |
| last_import | |
| high_quality_rendering | |
| csv_export_enabled | |
| sign_time_format | |
| biometry_enabled | |
| qr_code_scanner_enabled | |
| default_files_enabled | |
| menu_file_channel_name | |
| upload_file_channel_name | |
| menu_web_channel_name | |
| menu_form_channel_name | |
| details_file_view | |
| knox_enabled | |
| move_file | |
| zoom_enabled | |
| flatten_enabled | |
| cloud_signature_environment | |
| cloud_signature_username | |
| jpg_in_document_enabled | |
| upload_google_drive_directory | +suffix |
| upload_google_drive_directory_id | +suffix |
| upload_google_drive_account_name | +suffix |
| upload_google_drive_channel_name | +suffix |
| browse_google_drive_directory | +suffix |
| browse_google_directory_drive_id | +suffix |
| browse_google_drive_account_name | +suffix |
| browse_google_drive_channel_name | +suffix |
| draw_mode | |
| gps_enabled | |
| screen_orientation | |
| language |
* implementation for Windows is limited for some attributes only (“browse_rest_username”, “browse_rest_password”, “upload_web_username”, “upload_web_password”)
openPreferences (Android) #
Opens the Signatus preferences window. If Signatus is configured to launch directly into a wizard, this function allows administrators to access and modify application settings without stopping the wizard.
/**
* @param {Object} arg- Empty JSON object.
* @returns {boolean} - Returns true if the preferences were successfully opened, false otherwise.
*/
function openPreferences (arg);Example :
const isSucess = openPreferences ({});
exportSettings (Android) #
Enables the export of application settings to an encrypted file. This functionality is available both in the application settings and through the wizard.
The encrypted settings file can be transferred to another device to easily replicate the configuration, or uploaded to the license server and distributed automatically to devices during license activation.
/**
* @param {Object} arg- Empty JSON object.
* @returns {string} Returns JSON object as string with keys : success : true / false path : path to exported file
*/
function exportSettings(arg);Example :
const res = exportSettings ({});
const result = JSON.parse(res);Result example :
{
"success": true,
"path": "/storage/emulated/0/Android/data/com.anasoft.signatus.app/files/Export/com.anasoft.signatus.app_preferences.xml"
}scanLicense (Android) #
Opens a barcode reader to scan QR license code. After scanning, it connects to the license server and downloads the license and all the related configuration files available.
/**
* @param {Object} arg- Parameter JSON object.
* @returns {void}
*/
function scanLicense (arg);Parameters description :
| Name | Required | Format | Description |
|---|---|---|---|
| call | true | string | Callback function name |
Example :
const arg = {
"call": "onScanLicense"
}
scanLicense(arg);
/**
* callback function for scanLicense function
* @param res - result in string format
*/
function onScanLicense (res) {
const result = JSON.parse(res);
}Result example :
{
"parameter": {
"suceess": true
}
}getLicense (Android) #
Returns information about Signatus license activated on the device.
/**
* @param {Object} arg- Empty JSON object.
* @returns {string} - Returns license info in JSON format as string
*/
function getLicense(arg);Example :
const res= getLicense({});
const result = JSON.parse(res);Result example :
{
"activation_date": "15.12.2025",
"expiry_date": "31.07.2030",
"last_modified": "01.09.2025",
"license_hash": "",
"json_data": {},
"pdf_watermark": false
}setTitleBar (Android) #
Sets the text , color and visibility of the Android action bar of a wizard.
/**
* @param {Object} arg- Parameter JSON object.
* @returns {void}
*/
function setTitleBar (arg);Parameters description :
| Name | Required | Format | Description |
|---|---|---|---|
| text | false | string | Set the text of the action bar at the top of the screen |
| color | false | string | Set the color of the action bar at the top of the screen in hex format. For example “#ff0000“ |
| state | false | string | – off : hide action bar – on : show action bar |
Example :
const arg = {
"text" : "My wizard",
"color" : "#ff0000",
"state" : "on"
};
setTitleBar (arg);
setProgress (Android) #
Sets the value of the progress indicator displayed in the Android system task bar during wizard execution. The progress bar shows the current wizard step and the total number of steps to be completed.
/**
* @param {Object} arg- Parameter JSON object.
* @returns {void}
*/
function setProgress (arg);Parameters description :
| Name | Required | Format | Description |
|---|---|---|---|
| progress | true | int | Current progress step |
| max | true | int | Max progress step |
Example :
const arg = {
"progress" : 1,
"max" : 5
};
setProgress(arg);
Result :

getChannels (Android) #
Returns information about all upload channels configured in the Signatus application settings.
/**
* @param {Object} arg- Empty JSON object.
* @returns {Object} - Returns JSON Array about all upload channels configured in the Signatus application settings.
*/
function getChannels(arg);Example :
const result = getChannels({});Result example :
[
{
"name": "SignedLocal"
},
{
"name": "SignedDocuments"
}
]clearWebView (Android) #
Clears the browsing history, cache, and form data of the web view used by the wizard. This is especially useful at the end of a multi-user session to ensure that information entered by one user (such as login credentials) is not visible to subsequent users.
/**
* @param {Object} arg- Empty JSON object.
* @returns {void}
*/
function clearWebView(arg);Example :
clearWebView ({});cancel (Android, Windows, iOS) #
The cancel function is used to exit the HTML wizard or to control the Signatus application state, such as minimizing, restarting, or closing the application.
/**
* @param {Object} arg- Parameter JSON object.
* @returns {void}
*/
function cancel(arg);Parameters description :
| Name | Required | Format | Description |
|---|---|---|---|
| state | false | string | – empty JSON : closes the HTML wizard a returns control to the Signatus menu – off: closes Signatus application – minimize: minimizes Signatus application (like button Home) – restart : restarts Signatus application |
Example :
const arg = {
"state": "off"
};
cancel(arg);