Top Banner
Creating Contextual Applications with Maslow & the Device API Tim Wright, @csskarma Fresh Tilled Soil What? How? Why? Contextual Applications Maslow Device API Maslow Maslow
44
Welcome message from author
This document is posted to help you gain knowledge. Please leave a comment to let me know what you think about it! Share it to your friends and learn new things together.
Transcript
Page 1: Creating Contextual Applications with Maslow & The Device API

Creating Contextual Applications with Maslow & the Device API

Tim Wright, @csskarma Fresh Tilled Soil

What?

How?

Why?

Contextual Applications Maslow

Device APIMaslowMaslow

Page 2: Creating Contextual Applications with Maslow & The Device API

Contextual Applications

Page 3: Creating Contextual Applications with Maslow & The Device API

Abraham Maslow

Page 4: Creating Contextual Applications with Maslow & The Device API

“If all you have is a hammer, everything looks

like a nail.”

Page 5: Creating Contextual Applications with Maslow & The Device API

Physiological

Safety

Love/Belonging

Esteem

Self- Actualization

Page 6: Creating Contextual Applications with Maslow & The Device API

Why does this matter?

Page 7: Creating Contextual Applications with Maslow & The Device API

The Device API

Page 8: Creating Contextual Applications with Maslow & The Device API

THE DEVICE API

2009

Page 9: Creating Contextual Applications with Maslow & The Device API

SAFTEY

navigator.geolocation.getCurrentPosition(function(position) {

var lat = position.coords.latitude;

var lon = position.coords.longitude;

!});

Geolocation

Page 10: Creating Contextual Applications with Maslow & The Device API

THE DEVICE API

2014?

Page 11: Creating Contextual Applications with Maslow & The Device API

Abraham Maslow’s Device API

Page 12: Creating Contextual Applications with Maslow & The Device API

“Physical requirements for human survival”

PHYSIOLOGICAL

Page 13: Creating Contextual Applications with Maslow & The Device API
Page 14: Creating Contextual Applications with Maslow & The Device API
Page 15: Creating Contextual Applications with Maslow & The Device API
Page 16: Creating Contextual Applications with Maslow & The Device API
Page 17: Creating Contextual Applications with Maslow & The Device API

PHYSIOLOGICAL

Connectivity

Bandwidth

Do I have internet right now?

Do I have enough to get the content?

Page 18: Creating Contextual Applications with Maslow & The Device API

Online & Offline events

PHYSIOLOGICAL

navigator.onLine = true; // or false

window.addEventListener('online', updateOnlineStatus);

window.addEventListener('offline', updateOnlineStatus);

Page 19: Creating Contextual Applications with Maslow & The Device API

Network information API brings us all great sadness.

PHYSIOLOGICAL

Page 20: Creating Contextual Applications with Maslow & The Device API

PHYSIOLOGICAL

<picture>

<source srcset="big.jpg 1x, big-hd.jpg 2x">

<source srcset="small.jpg 1x, small-hd.jpg 2x">

<img src="fallback.jpg" alt=“dog barf">

</picture>

Page 21: Creating Contextual Applications with Maslow & The Device API

SAFETY

“The need for security in personal life, finances,

and health”

Page 22: Creating Contextual Applications with Maslow & The Device API

SAFETY

Physical Safety

Data Safety

Am I in a safe place?

Is all the work I’ve done safe?

Page 23: Creating Contextual Applications with Maslow & The Device API

Battery Manager

SAFETY

navigator.getBattery().then(function(battery) {

console.log(battery.level);

! battery.addEventListener('levelchange', function() {

console.log(this.level);

};

});

Page 24: Creating Contextual Applications with Maslow & The Device API

Battery Manager

SAFETY

navigator.battery.charging

navigator.battery.chargingTime

navigator.battery.dischargingTime

navigator.battery.level

onchargingchange

onchargingtimechange

ondischargingtimechange

onlevelchange

Page 25: Creating Contextual Applications with Maslow & The Device API

LOVE & BELONGING

“The desire for friendship, intimacy, and family”

Page 26: Creating Contextual Applications with Maslow & The Device API

LOVE & BELONGING

Connecting With People

Feeling Comfort

How can I meet and be around people?

Is the environment I’m in comforting?

Page 27: Creating Contextual Applications with Maslow & The Device API

LOVE & BELONGING

Page 28: Creating Contextual Applications with Maslow & The Device API

Contacts Manager

LOVE & BELONGING

contacts code here

Page 29: Creating Contextual Applications with Maslow & The Device API

WebNFC

LOVE & BELONGING

WebNFC code here

Page 30: Creating Contextual Applications with Maslow & The Device API

Messaging

LOVE & BELONGING

messaging code here

Page 31: Creating Contextual Applications with Maslow & The Device API

Ambient Light

LOVE & BELONGING

window.addEventListener("devicelight", function(e){

console.log(e.value);

!});

Page 32: Creating Contextual Applications with Maslow & The Device API

ESTEEM

“The need for self-esteem and self-respect.”

Page 33: Creating Contextual Applications with Maslow & The Device API

LOVE & BELONGING

Self-respect

Self-esteem

How do I feel about myself?

How do other people feel about me?

Page 34: Creating Contextual Applications with Maslow & The Device API

Media Capture & Streams

ESTEEM

Media capture

Page 35: Creating Contextual Applications with Maslow & The Device API

Proximity

ESTEEM

Proximity

Page 36: Creating Contextual Applications with Maslow & The Device API

SELF ACTUALIZATION

“The Desire to accomplish everything that one can.”

Page 37: Creating Contextual Applications with Maslow & The Device API

LOVE & BELONGING

Reaching Potential

Self-reflection

Am I doing the best I can?

Why am I here?

Page 38: Creating Contextual Applications with Maslow & The Device API

Vibrate

SELF-ACTUALIZATION

navigator.vibrate(1000);

navigator.vibrate([1000]);

navigator.vibrate([50, 100, 50]);

navigator.vibrate(0);

navigator.vibrate([]);

Page 39: Creating Contextual Applications with Maslow & The Device API

SELF-ACTUALIZATION

But seriously, folks…

Page 40: Creating Contextual Applications with Maslow & The Device API

The Web is an open medium.

Page 41: Creating Contextual Applications with Maslow & The Device API

Prototyping

Page 42: Creating Contextual Applications with Maslow & The Device API

It’s super cool!

Page 43: Creating Contextual Applications with Maslow & The Device API
Page 44: Creating Contextual Applications with Maslow & The Device API

Questions, now?

Questions, later?

Use words!

@[email protected]

csskarma.com/contact