This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Reports custom events to the LivePerson Agent Console and reporting system. | |
* @param {string} name of the event | |
* @param {Object} mixed data associated with the event | |
*/ | |
/** | |
* Predefined event name constants | |
*/ | |
LPMobile.LP_EVENT_CONVERSION; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LIOLookIOManager *lookIO = [LIOLookIOManager sharedLookIOManager]; | |
[lookIO clearCustomVariables]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LIOLookIOManager *lookIO = [LIOLookIOManager sharedLookIOManager]; | |
NSString* customerId = [lookIO customVariableForKey:@"customer_id"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LIOLookIOManager *lookIO = [LIOLookIOManager sharedLookIOManager]; | |
[lookIO setCustomVariable:@"654321" forKey:@"customer_id"]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
LIOLookIOManager *lookIO = [LIOLookIOManager sharedLookIOManager]; | |
[lookIO addCustomVariables:[NSDictionary dictionaryWithObjectsAndKeys: | |
@"[email protected]", @"email_address", | |
@"123456", @"customer_id", | |
nil]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Use the following to report an event. | |
- (void)reportEvent:(NSString *)anEvent; | |
- (void)reportEvent:(NSString *)anEvent withData:(id<NSObject>)someData; | |
// Use the following constants for reporting common events. | |
NSString *kLPEventConversion; | |
NSString *kLPEventPageView; | |
NSString *kLPEventSignUp; | |
NSString *kLPEventSignIn; | |
NSString *kLPEventAddedToCart; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface MyNavigationController : UINavigationController | |
@end | |
@implementation MyNavigationController | |
-(BOOL)shouldAutorotate { | |
LIOLookIOManager* lookIOManager = [LIOLookIOManager sharedLookIOManager]; | |
if ([lookIOManager shouldLockInterfaceOrientation]) | |
return NO; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// For apps supporting iOS 6.0 and above | |
-(BOOL)shouldAutorotate { | |
LIOLookIOManager* lookIOManager = [LIOLookIOManager sharedLookIOManager]; | |
if ([lookIOManager shouldLockInterfaceOrientation]) | |
return NO; | |
return YES; | |
} | |
// For apps supporting iOS < 6.0 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(UInt32)lookIOManagerEnabledCollaborationComponents:(LIOLookIOManager *)aManager { | |
return kLPCollaborationComponentPhoto; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
-(void)viewWillAppear:(BOOL)animated | |
{ | |
[[LIOLookIOManager sharedLookIOManager] setSkill:@"YOUR NEW SKILL"]; | |
// YOUR CODE | |
} |