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
-
hostName –
Host name or IP Address of the SAP Mobile Server.
-
portNumber –
Port number of the SAP Mobile Server with which the client communicates.
-
farmId –
Relay server farm ID to which the SAP Mobile Server belongs. Relevant only during registration through relay server.
-
error –
Double pointer to the error object if the function returns an error. This is relevant while making changes to connection settings after the user has been registered.
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]; Usage (Connection settings change after user registration) ODPUserManager* userManager = [ODPUserManager getInstance:"ApplicationId"]; NSError* error = nil; [userManager setConnectionProfileWithHost:"hostname" port:5001 farm:@"farmid" error:&error];