beautypg.com

Setconfigurationparams, Setconfiguration, Setconfigurationxml – MagTek Audio Reader for Android Devices User Manual

Page 26

background image

20

SDK Version

setConfigurationParams

Sets configuration parameters
-

public void setConfigurationParams(String lpstrParams)

Parameters

lpstrParams

PAN_MOD10_CHECKDIGIT = TRUE/FALSE (default is TRUE)

setConfiguration

Sets configuration parameters from server. The method will throw an exception if there is a
problem with setting configuration parameters.
-

public void setConfiguration(String lpstrUsername, String lpstrPassword, int

lpiReaderType,SCRAConfigurationDeviceInfo lpDeviceInfo,String lpstrAddress, int
lpTimeout)throws MTSCRAException


Parameters

lpiReaderType
Type of reader. The type of reader is assigned an integer value starting at 1.
lpDeviceInfo
SCRAConfigurationDeviceInfo object. This object will be used as a search criteria if
provided. Currently we recommend the usage of Model number only. If this is set to null, SDK
will perform the search based on the model number.
lpstrAddress
Address of the remote configuration server. Please refer to the sample code for details
lpTimeout
Timeout specified for connecting to the server.

setConfigurationParams

Sets configuration parameters . The method will throw an exception if there is a problem with setting
configuration parameters.

-public void setConfigurationParams(SCRAConfiguration lpConfig)throws MTSCRAException

Parameters

lpConfig
SCRAConfiguration object.

setConfigurationXML

Sets configuration parameters. The method will throw an exception if there is a problem with setting
configuration parameters.