Setting Product Data

The RUISDK.SetProductData function sets or clears the product data.

Note:The product data must be set every time the SDK instance is run. This is different than V4 of the Usage Intelligence (Trackerbird) SDK where the supplied product data was stored in the SDK configuration file and if it was not supplied, the values in the configuration file were used.

RUISDK.SetProductData can be called between RUISDK.CreateConfig and RUISDK.StopSDK and can be called zero or more times.

RUISDK.SetProductData is a synchronous function returning when all functionality is completed.

RUISDK.SetProductData

RUIResult RUISDK.SetProductData (String productEdition, String productLanguage, String productVersion, String productBuildNum)

Parameters

The RUISDK.SetProductData function has the following parameters.

RUISDK.SetProductData Parameters

Parameter

Description

productEdition (String)

The product edition that is to be set. Maximum length of 128 characters.

productLanguage (String)

The product language that is to be set. Maximum length of 128 characters.

productVersion (String)

The product version that is to be set. Maximum length of 128 characters.

productBuildNumber (String)

The product build number that is to be set. Maximum length of 128 characters.

Returns

The RUISDK.SetProductData function returns a RUIResult enum value with the following possible values:

RUISDK.SetProductData Returns

Return

Description

ok

Function successful.

sdkInternalErrorFatal

Irrecoverable internal fatal error. No further API calls should be made.

sdkAborted

A required New Registration has failed, and hence the SDK is aborted. RUISDK.StopSDK and RUISDK destructor are possible.

sdkSuspended

The Server has instructed a temporary back-off.

sdkPermantelyDisabled

The Server has instructed a permanent disable.

sdkOptedOut

nstance has been instructed by the application to opt-out.

configNotCreated

Configuration has not been successfully created.

sdkAlreadyStopped

SDK has already been successfully stopped.