Kony Management API Guide: App Management EMM JS APIs > IdleTimeOut Policy API

IdleTimeOut Policy API

The IdleTimeOutPolicy API' helps a developer to set idle time out for an app.

com.kony.iemm.app.setIdleTimeOutPolicy

This method sets IdleTimeOut policy defined by a developer to an app. This will overwrite IdleTimeOut policy if that is already set from the server.

Signature

JavaScript:com.kony.iemm.app.setIdleTimeOutPolicy(timeinsecs);

Input Parameters

Variable Name timeinsecs
Presence Mandatory
Type int
Values Number of seconds

Result Values

Int

Result Codes

Code Description
100 INVALID_DATA
200 SUCCESS
400 FEATURE_NOT_SUPPORTED
500 FAILURE
600

APP_CONTEXT_NULL_ERRORCODE (android)

700 PACKAGE_NULL_ERRORCODE(android)

com.kony.iemm.app.clearIdleTimeOutPolicy

This method clears IdleTimeOut policy set by a developer. Once the policy defined, the server defined IdleTimeOut policy will be applied to an app if any.

Signature

JavaScript:com.kony.iemm.app.clearIdleTimeOutPolicy();

Input Parameters

Result Values

Int

Result Codes

Code Description
200 SUCCESS
500 FAILURE
400 FEATURE_NOT_SUPPORTED
600

APP_CONTEXT_NULL_ERRORCODE (android)

700 PACKAGE_NULL_ERRORCODE(android)
Last updated on : 04 March, 2021 Copyright © 2017 Kony, Inc. All rights reserved.