Git Product home page Git Product logo

watchos-2-sampler's Introduction

watchOS-2-Sampler

Code examples for new features of watchOS 2.

##Requirements

  • Xcode 7.0, iOS 9.0 SDK, watchOS 2.0 SDK
  • iOS 9.0 and watchOS 2.0

##How to build

  • Change the "Team" setting on [General] for each target.
  • Setup HealthKit for the WatchKit extension target.

##Contents

[note] ScreenShots will be available after the official release of watchOS 2 because of NDA. Some images are picked from WWDC session videos which are publicly opened by Apple.

###Accelerometer

Access to Accelerometer data using CoreMotion.

###Gyroscope

Access to Gyroscope data using CoreMotion.

###Pedometer

Counting steps demo using CMPedometer.

###Heart Rate

Access to Heart Rate data using HealthKit.

###Table Animations

Insert and remove animations for WKInterfaceTable.

###Animated Properties

Animate width/height and alignments.

###Audio Rec & Play

Record and play audio.

###Picker Styles

WKInterfacePicker styles catalog.

###Taptic Engine

Access to the Taptic engine using playHaptic method.

###Alert

Present an alert or action sheet.

###Animation with Digital Crown

Coordinated Animations with WKInterfacePicker and Digital Crown.

###Interactive Messaging

Sending message to phone and receiving from phone demo with WatchConnectivity.

###Open System URL

Open Tel or SMS app using openSystemURL: method.

###Audio File Player

Play an audio file with WKAudioFilePlayer.

###Network Access (by KAMEDAkyosuke)

Get an image data from network using NSURLSession.

##Known Issues

  • Audio Rec & Play
    • Can't record on a real watch device. (Works on simulator)
  • Heart Rate
    • Under development
  • Open System URL
    • Phone doesn't launch...
    • It's based on the Apple's document.
    • sms: works with same way. I have no idea why it doesn't work!

##Author

Shuichi Tsutsumi

##Special Thanks

Icons are designed by Okazu

watchos-2-sampler's People

Contributors

shu223 avatar

Watchers

GeumSang Yoo 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.