setConnectionProfileWithHost:port:farm:error:(NSString *, NSInteger, NSString *, NSError **) method

Provides connection properties to the UserManager class before registration or changes the connection settings after the user is registered.

Syntax

public virtual BOOL setConnectionProfileWithHost:port:farm:error: (NSString * hostName, NSInteger portNumber, NSString * farmId, NSError ** error)

Parameters

Returns

BOOL indicating if the operation is successful or not. Usage (Connection settings before user registration) ODPUserManager* userManager = [ODPUserManager getInstance:"ApplicationId"]; [userManager setConnectionProfileWithHost:@"hostname" port:5001 farm:@"farmid" error:nil];