Changing ReachOut on Autosync Setting

The flag to determine whether or not a ReachOut should be requested as part of each SDK Automatic Sync is initially set in the RUISDK.CreateConfig call. There may be certain cases when the application wants to either enable or disable this functionality during the application lifetime.

The SetReachOutOnAutoSync function allows the application to enable or disable this capability after RUISDK.CreateConfig has been called.

The SetReachOutOnAutoSync function enables (true) or disables (false) the ReachOut on Autosync capability. Note if the call does not change the existing setting, the API will still return OK.

The SetReachOutOnAutoSync function can be called between RUISDK.CreateConfig and RUISDK.StopSDK and can be called zero or more times.

SetReachOutOnAutoSync

RUIResult SetReachOutOnAutoSync (Boolean reachOutOnAutoSyncSetting)ΒΆ

Parameters

The SetReachOutOnAutoSync function has the following parameters.

SetReachOutOnAutoSync Parameters

Parameter

Description

reachOutOnAutoSyncSetting (bool)

Enable (true) or disable (false) the ReachOut on Autosync capability.

Returns

The SetReachOutOnAutoSync function returns a RUIResult enum value with the following possible values:

SetReachOutOnAutoSync 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.