Registers the client with a previous manually white-listed user on SCC.
Syntax
public virtual BOOL
registerUser:activationCode:error:isSyncFlag:
(NSString * userName, NSString * activationCode, NSError ** error, BOOL isSynchronous)
Parameters
-
userName –
User Name that is white-listed on SCC.
-
activationCode –
Activation code of the user created in SCC.
-
error –
Pointer to the error object if the function returns an error.
-
isSynchronous –
Flag to indicate if the user registration is synchronous or ansynchronous.
Returns
BOOL indicating if the user registration has been successful. Significant in case of synchronous registration only. Usage (Synchronous registration) ODPUserManager* userManager = [ODPUserManager getInstance:"ApplicationId"]; [userManager setConnectionProfileWithHost:@"hostname" port:5001 farm:@"farmid" error:nil]; NSError* error = nil; if ([userManager registerUser:"username" activationCode:@"actcode" error:&error isSyncFlag:YES]) { // Further processing } else { // Error handling using the error object defined above } Usage (Asynchronous Registration) ODPUserManager* userManager = [ODPUserManager getInstance:"ApplicationId"]; [userManager setConnectionProfileWithHost:@"hostname" port:5001 farm:@"farmid" error:nil]; [userManager setDelegate:self]; // The class implementing the listener methods should adhere to <ODPUserManagerDelegate> protocol [userManager registerUser:"username" activationCode:@"actcode" error:nil isSyncFlag:NO];