Transcript
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

Top Related