CortexClientDelegate protocol
#import <EmotivCortexLib/CortexClient.h>
@protocol CortexClientDelegate
@required
- (void)authenticationFinished:(NSString* )authenticationCode
withError:(NSError*)error;
- (void)processResponse:(NSString*)responseMessage;
@end
Your application must implement this protocol and use it as a delegate for the class CortexClient.
authenticationFinished
- (void)authenticationFinished:(NSString* )authenticationCode
withError:(NSError*)error;
The Cortex Library calls authenticationFinished after you called the function authenticate. If there is no error, then the parameter authenticationCode contains a code that you can use to call the JSON API method loginWithAuthenticationCode.
processResponse
- (void)processResponse:(NSString*)responseMessage;
The argument responseMessage is a JSON message sent by the Cortex library.
Last updated