Setting Product Version
The setProductVersion: method is used to set the version of the application being run. In most cases, this property would already have been set when initiating createConfig. So, this function normally only needs to be used if the version number changes during runtime such as after an update.
(RUIRESULTOBJC) setProductVersion: (NSString*)productVersion
Parameters
The setProductVersion: method has the following parameters.
Parameter |
Description |
productVersion (NSString*) |
Returns
The setProductVersion: method returns one of the return status constants below.
Return |
Description |
RUI_OK |
Function successful. |
RUI_SDK_INTERNAL_ERROR_FATAL |
Irrecoverable internal fatal error. No further API calls should be made. |
RUI_SDK_ABORTED |
A required New Registration has failed, and hence the SDK is aborted. stopSDK: and Objective-C instance release are possible. |
RUI_SDK_SUSPENDED |
The Server has instructed a temporary back-off. |
RUI_SDK_PERMANENTLY_DISABLED |
The Server has instructed a permanent disable. |
RUI_SDK_OPTED_OUT |
Instance has been instructed by the application to opt-out. |
RUI_CONFIG_NOT_CREATED |
Configuration has not been successfully created. |
RUI_SDK_ALREADY_STOPPED |
SDK has already been successfully stopped. |