apps for the apple watch sensors
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.TRANSCRIPT
Apps for Sensors
WATCH
“Not Sensors” but still cool
Sensors
Accelerometer
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
Location
locationManager = CLLocationManager() locationManager.delegate = self locationManager.desiredAccuracy = kCLLocationAccuracyBest locationManager.requestAlwaysAuthorization() locationManager.startUpdatingLocation()
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) } }
Heart Rate
// total guess!
sensorManager = CSSensorManager()
sensorManager.delegate = self
heartMonitor = sensorManager.sensorType(HEARTRATE)
heartMonitor.startCollectingHeartrate()
Smart Devices Health & Activity
PORTING
The only platform that goes everywear.™
Write once.Go everywear.
Simple, brilliant insights.
The only platform that goes everywear.™
@stevecaldwell
www.straphq.com@getstrap
github.com/strap
We’re Hiring!
Additional Slides
November 14, 2013 @antwatkins Anthony Watkins, Senior Director of Developer Relations