GithubHelp home page GithubHelp logo

zofiag / cordova-lookback Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ryfn/cordova-lookback

0.0 2.0 1.0 101.87 MB

Cordova plugin for https://lookback.io

License: ISC License

Objective-C 1.51% HTML 98.48% JavaScript 0.02%

cordova-lookback's Introduction

Cordova Lookback Plugin

Official Cordova plugin for http://lookback.io. Originally written by Ryan French, to whom Lookback owes its eternal gratitude.

Methods will be accessable on the window.Lookback object.

Utilizes Lookback Safe, which will not record with as good framerate as Lookback HD, but can freely be deployed to AppStore. (I'll make the cordova plugin automatically choose the correct plugin variant (HD or Safe) depending on build configuration once I figure out how).

Install

Install with cordova plugin add https://github.com/lookback/cordova-lookback

Currently supported functions

The most important pieces of functionality from the full API has been implemented.

setupWithAppToken

call this first, once, and after device ready.

shakeToRecord

true|false

userIdentifier

If your app has a login system, you can use the user name from your own service to identify the user who made the recording.

paused

true|false

enteredView

pass in a view name

exitedView

pass in a view name

Example

document.addEventListener('deviceready', function(){
        window.Lookback.setupWithAppToken('your-app-token');
        window.Lookback.shakeToRecord(true);
        
        // optional: store user's name with recording
        window.Lookback.userIdentifier('name or email of user'); 
    }, false);

or to try some optional features:

document.addEventListener('deviceready', function(){
    window.Lookback.setupWithAppToken('your-app-token');
    window.Lookback.shakeToRecord(false);
    
    window.Lookback.userIdentifier('name or email of user'); // optional
    
    window.Lookback.enteredView('my view name');
}, false);

License

Use of lookback.io Framework subject to terms available on http://lookback.io

cordova-lookback's People

Contributors

nevyn-lookback avatar nevyn avatar

Watchers

James Cloos avatar Zofia Góralewska-Wojtysiak avatar

Forkers

mgregier

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.