27
Apps for Sensors WATCH

Apps for the Apple Watch Sensors

Embed Size (px)

DESCRIPTION

What kinds of apps can be built for the Apple Watch? Steve Caldwell will present what's possible with the new sensors on the Watch. He'll show how it is easy to use the data that the hardware collects for you and make a big difference for your users. We’ll have an open conversation about app ideas. About this event's speaker Steve Caldwell is an experienced wearable software developer. He is co-founder of the cross-platform wearable analytics and tools company, Strap. Steve has been building web and mobile applications in some way shape or form for over 5 years, with a recent emphasis on wearables, big data, and sensor applications. LinkedIn → About our group Let's get together and learn how to develop for the  Watch. Events are hosted in the San Francisco Bay Area and Silicon Valley as well as online in Hangouts. This is a community of designers and developers who use Swift and animation tools like Origami to craft experiences for iOS and the Apple Watch. Part of the goal is to connect people together so they can work on projects.

Citation preview

Page 1: Apps for the Apple Watch Sensors

Apps for Sensors

WATCH

Page 2: Apps for the Apple Watch Sensors
Page 3: Apps for the Apple Watch Sensors

“Not Sensors” but still cool

Page 4: Apps for the Apple Watch Sensors
Page 5: Apps for the Apple Watch Sensors
Page 6: Apps for the Apple Watch Sensors

Sensors

Page 7: Apps for the Apple Watch Sensors
Page 8: Apps for the Apple Watch Sensors
Page 9: Apps for the Apple Watch Sensors
Page 10: Apps for the Apple Watch Sensors
Page 11: Apps for the Apple Watch Sensors
Page 12: Apps for the Apple Watch Sensors

Accelerometer

Page 13: Apps for the Apple Watch Sensors

Accelerometerlet motionManager: CMMotionManager = CMMotionManager()

if (motionManager.accelerometerAvailable) {

motionManager.startAccelerometerUpdatesToQueue(NSOperationQueue())

{(data, error) in

if(data.acceleration.y < -0.25) {

// tilting the device to the right

Page 14: Apps for the Apple Watch Sensors

Location

locationManager = CLLocationManager() locationManager.delegate = self locationManager.desiredAccuracy = kCLLocationAccuracyBest locationManager.requestAlwaysAuthorization() locationManager.startUpdatingLocation()

Page 15: Apps for the Apple Watch Sensors

Camera Controller@IBAction func takePhoto(sender: AnyObject) { if UIImagePickerController.isSourceTypeAvailable(UIImagePickerControllerSourceType.Camera){ println("Button capture") var imag = UIImagePickerController() imag.delegate = self imag.sourceType = .Camera; imag.mediaTypes = NSArray(object: kUTTypeImage) imag.allowsEditing = false self.presentViewController(imag, animated: true, completion: nil) } }

Page 16: Apps for the Apple Watch Sensors

Heart Rate

// total guess!

sensorManager = CSSensorManager()

sensorManager.delegate = self

heartMonitor = sensorManager.sensorType(HEARTRATE)

heartMonitor.startCollectingHeartrate()

Page 17: Apps for the Apple Watch Sensors

Smart Devices Health & Activity

Page 18: Apps for the Apple Watch Sensors
Page 19: Apps for the Apple Watch Sensors

PORTING

Page 20: Apps for the Apple Watch Sensors
Page 21: Apps for the Apple Watch Sensors
Page 22: Apps for the Apple Watch Sensors

The only platform that goes everywear.™

Write once.Go everywear.

Simple, brilliant insights.

Page 23: Apps for the Apple Watch Sensors

The only platform that goes everywear.™

@stevecaldwell

www.straphq.com@getstrap

github.com/strap

We’re Hiring!

Page 24: Apps for the Apple Watch Sensors

Additional Slides

Page 25: Apps for the Apple Watch Sensors

November 14, 2013 @antwatkins Anthony Watkins, Senior Director of Developer Relations

Page 26: Apps for the Apple Watch Sensors
Page 27: Apps for the Apple Watch Sensors