LookbackRecorder(LookbackRecording)

Extends Class:
Declared In:

Introduction

Recording API.



Methods

-startRecording
-startRecordingWithOptions:
-stopRecording

startRecording


- (LookbackRecordingSession*)startRecording; 
Discussion

Start a recording session with the default recording options.

Equivalent to:

[[LookbackRecorder sharedRecorder] startRecordingWithOptions:[[LookbackRecorder sharedRecorder] options]];


startRecordingWithOptions:


- (LookbackRecordingSession*)startRecordingWithOptions:(LookbackRecordingOptions*)options; 
Return Value

A new recording session, configured with the given options.

Discussion

Start recording with the provided options, overriding the default options.

Note:

The recording might not start immediately if the user hasn't accepted the privacy policy yet.


stopRecording


- (void)stopRecording; 
Discussion

Stop recording


Properties

countOfRecordingsPendingPreview
countOfRecordingsPendingUpload
currentRecordingSession
options
paused
recording
uploadProgress

countOfRecordingsPendingPreview


@property(readonly) NSInteger countOfRecordingsPendingPreview; 
Discussion

How many recordings are waiting to be previewed? This is the number shown as a red badge in the `LookbackRecordingViewController`. If your app does not allow access to the `LookbackRecordingViewController`, you should manually display this number somewhere in your app and allow the user to view `LookbackRecordingsTableViewController`, in order to finish previewing recent recordings.


countOfRecordingsPendingUpload


@property(readonly) NSInteger countOfRecordingsPendingUpload; 
Discussion

How many recordings are currently uploading, or waiting to be uploaded? If your app does not allow access to the `LookbackRecordingViewController`, you should manually display this number in your app, and possibly allow the user to view `LookbackRecordingsTableViewController` to see the status of their uploads.

KVO compliant √


currentRecordingSession


@property(readonly) LookbackRecordingSession *currentRecordingSession; 
Discussion

Retrieve the current recording, if one is ongoing. This is nil if recording is off.


options


@property(readonly) LookbackDefaultRecordingOptions *options; 
Discussion

Default recording options. These are stored in NSUserDefaults, and some can be overridden by the user from LookbackSettingsViewController. Changing the default options does not affect the current recording, if there is one.


paused


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

Is LookbackRecorder paused? LookbackRecorder will pause automatically when showing the Recorder. This property doesn't do anything if LookbackRecorder is not recording (as there is nothing to pause).


recording


@property(nonatomic,
    getter=isRecording) BOOL recording; 
Discussion

Whether LookbackRecorder is set to currently record. Setting this to YES is equivalent to calling -[LookbackRecorder startRecording], and setting it to NO is equivalent to calling [[[LookbackRecorder sharedRecorder] currentRecordingSession] stopRecording];

KVO compliant √


uploadProgress


@property(readonly) double uploadProgress; 
Discussion

If countOfRecordingsPendingUpload is > 0, this is a number between 0 and 1 for how far upload has progressed.