setConfigProperty:error: method

Updates the config property by providing list of settings as a NSDictionary Object.

Syntax

- ( BOOL ) setConfigProperty : ( NSDictionary * ) settingsList error : ( NSError ** ) error

Parameters

Returns

Returns BOOL whether successfully updated or not.

Example 1

SMPAppSettings* appSettings = [SMPAppSettings initializeWithConnection:clientConn userName:"username" password:@"password"];
NSDictionary props = [NSMutableDictionary dictionary];
[props setValue:"654321" forKey:@"d:ApnsDeviceToken"];
NSError error = nil;
BOOL isSuccess = [appSettings setConfigProperty:props error:&error];
if (!error)
{
    // Further processing
}