Lookback

Superclass:
NSObject
Declared In:

Introduction

Lookback should be +[Lookback setupWithAppToken:] before being used. After that, you can set its [Lookback enabled] property to start and stop recording at any time. You can use LookbackSettingsViewController to provide a user interface to do so.

Rather than doing so manually, you can set -[Lookback shakeToRecord] to display this UI whenever you shake your device.



Methods

-enteredView:
-exitedView:
+lookback
+setupWithAppToken:

enteredView:


- (void)enteredView:(NSString*)viewIdentifier; 
Parameters
viewIdentifier

Unique human readable identifier for a specific view

Discussion

Track user navigation manually, if automatic tracking has been disabled.

See


exitedView:


- (void)exitedView:(NSString*)viewIdentifier; 
Parameters
viewIdentifier

Unique human readable identifier for a specific view

Discussion

Track user navigation manually, if automatic tracking has been disabled.

See


lookback


+ (Lookback*)lookback; 
Discussion

Shared instance of Lookback to use from your code. You must call +[Lookback setupWithAppToken:] before calling this method.


setupWithAppToken:


+ (void)setupWithAppToken:(NSString*)appToken; 
Parameters
appToken

A string identifying your app, received from your app settings at http://lookback.io

Discussion

In your applicationDidFinishLaunching: or similar, call this method to prepare Lookback for use, using the App Token from your integration guide at lookback.io.


Properties

enabled
framerateMultiplier
paused
shakeToRecord
userIdentifier

enabled


@property(nonatomic) BOOL enabled; 
Discussion

Whether Lookback is set to recording. You can either set this programmatically, or use LookbackSettingsViewController to let the user activate it.


framerateMultiplier


@property(nonatomic) float framerateMultiplier; 
Discussion

Lookback automatically sets a screen recording framerate that is suitable for your device. However, if your app is very performance intense, you might want to decrease the framerate at which Lookback records to free up some CPU time for your app. This multiplier lets you adapt the framerate that Lookback chooses for you to something more suitable for your app.

Default value: 1.0 Range: 0.1 to 1.0

See


paused


@property(nonatomic,
    getter=isPaused) BOOL paused; 
Discussion

Is Lookback paused? Lookback will pause automatically when app is inactive. The value of this property is undefined if recording is not enabled (as there is nothing to pause).


shakeToRecord


@property(nonatomic) BOOL shakeToRecord; 
Discussion

If enabled, displays UI to start recording when you shake the device. Default NO.


userIdentifier


@property(nonatomic,
    copy) NSString *userIdentifier; 
Discussion

Identifier for the user who's currently using the app. You can filter on this property at lookback.io later. If your service has log in user names, you can use that here. Optional.

See Also

http://lookback.io/docs/log-username