Setting Product Version

The RUISDK.SetProductVersion function is used to set the version of the application being run.

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.SetProductVersion can be called between RUISDK.CreateConfig and RUISDK.StopSDK and can be called zero or more times.

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

RUISDK.SetProductVersion

RUIResult RUISDK.SetProductVersion (String productVersion)

Parameters

The RUISDK.SetProductVersion function has the following parameters.

RUISDK.SetProduct Version Parameters

Parameter

Description

productVersion (String)

 

Returns

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

RUISDK.SetProductVersion 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

 

configNotCreated

Configuration has not been successfully created.

sdkAlreadyStopped

SDK has already been successfully stopped.