Download IBM Tealeaf CX Mobile iOS Logging Framework Guide
Transcript
For more information on mobile ap session replay templates, see "Native app
session replay customization" in the IBM Tealeaf CX Configuration Manual.
Replay logging can be automatic, manual, or a combination of the two. To enable
automatic layout logging find LogViewLayoutOnScreenTransition in
TLFConfigurableItems and set it to YES. This will automatically log a view
controller when the view controller's viewDidAppear:(BOOL)animated method is
called.
Note: If the viewController overrode the viewDidAppear, method[super
viewDidAppear:animated] must be called.
Correct
-(void)viewDidAppear:(BOOL)animated
{
[super viewDidAppear:animated];
// Custom code
}
Incorrect
-(void)viewDidAppear:(BOOL)animated
{
// Custom code
}
Several methods are included for manual logging of screen layout.
The following is the most basic manual logging method. The following method
logs the layout of the viewController passed into it.
-(BOOL)logScreenLayoutWithViewController:(UIViewController *)viewController
The following method performs the same action as the first method, but you can
pass in a specific name for the screen layout that is logged. This is helpful when
you log a view controller that can perform several different functions.
-(BOOL)logScreenLayoutWithViewController:(UIViewController *)viewController
andName:(NSString *)name
The following method performs the same action as the first method, but after the
specified delay. This is helpful for logging after certain events, such as reloading
the data in a table. The delay is measured in seconds.
-(BOOL)logScreenLayoutWithViewController:(UIViewController *)viewController
andDelay:(CGFloat)delay
The following method performs the same function as the previous method, but it
allows you to pass in a name for the layout.
-(BOOL)logScreenLayoutWithViewController:(UIViewController *)viewController
andDelay:(CGFloat)delay andName:(NSString *)name
In addition to logging the main view controller passed in, this method allows you
to pass in an array of other views to be logged at the same time. This is useful in
instances where there are elements on screen that are not part of the same view
hierarchy, such as an overlay attached directly to the application's window or an
alert view.
-(BOOL)logScreenLayoutWithViewController:(UIViewController *)viewController
andRelatedViews:(NSArray*)views
Chapter 2. Tealeaf iOS Logging Framework Installation and Implementation
7