Coder Social home page Coder Social logo

live-blurview's Introduction

LiveBlur Module

Require iOS 8.0 and Titanium SDK 3.4.1.

Description

This module is a view with the real time blur effect. Compatible only with iOS 8.0 or newer.

Blur View preview

Apple on iOS 7 put some screens on the system with the blur effect like Control or Notification Center. It's a nice effect and many people want to do the same in their applications, and has asked to Appcelerator, which put this feature in titanium.

Many modules are to capture the screen, apply the effect on the image and display it, but it is very expensive for the hardware and does not give the effect in real time.

Now in iOS 8.0 Apple release a API to use this effect.

This module use a native and public API from Apple to create a blur view.

This module can be published in Apple Store.

This module is ready for 64-bit support.

Get the module

You can download the version already compiled on dist folder

Accessing the LiveBlur Module

To access this module from JavaScript, you would do the following:

var blur = require("com.apaladini.blur");

The blur variable is a reference to the Module object.

Functions

createView

Simple, create a view with (almost) all the properties of the native view of Titanium. Just do not have the 'backgroundColor' properties and 'backgroundImage'.

var myView = blur.createView();

Properties

This view has its own properties

style

Integer, 0 for Dark, 1 (default) for Light and 2 for ExtraLight

var myView = blur.createView({
	style:0
});

or

myView.style = 0;

This is a module that I'm still working to improve it

Author

Adriano Paladini

live-blurview's People

Contributors

adrianopaladini avatar

Watchers

Dan Tamas avatar James Cloos avatar

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.