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

ClipBoard Policy API

The 'ClipBoard Policy API ' helps a developer to enable or disable clipboard from within an app.

com.kony.iemm.app.setClipBoardPolicy

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

Signature

JavaScript:com.kony.iemm.app.setClipBoardPolicy(allow);

Input Parameters

Variable Name allow
Presence Mandatory
Type Boolean
Values True It will allow cut/copy/paste
False It will restrict cut/copy/paste

Result Values

Int

Result Codes

Code Description
200 SUCCESS
400 FEATURE_NOT_SUPPORTED
500 FAILURE
600

APP_CONTEXT_NULL_ERRORCODE (android)

700 PACKAGE_NULL_ERRORCODE(android)

com.kony.iemm.app.clearClipBoardPolicy

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

Signature

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

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)
Copyright © 2017 Kony, Inc. All rights reserved.