Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Ruby is watching

Ruby is watching

An introduction on developing WatchKit and Android Wear apps using RubyMotion. We'll learn about the differences between both platforms, what kind of possibilities the smartwatches bring to extending your application and how to share some code for your watch app between both iOS and Android versions.

Boris Bügling

July 02, 2015
Tweet

More Decks by Boris Bügling

Other Decks in Programming

Transcript

  1. !!!

  2. INTERFACE CONTROLLER class InterfaceController < WKInterfaceController extend IB def initWithContext(context)

    if super [...] self end end def willActivate [...] end def didDeactivate [...] end end
  3. WATCHPRESENTER ▸ Remote controls Deckset instead ▸ Direct connection to

    the Mac ▸ Shows a preview of the slides ▸ Measures heartrate to display the "most exciting" slide ▸ Taps you if you're running out of time
  4. TAPTIC ENGINE typedef NS_ENUM(NSInteger, WKHapticType) { WKHapticTypeNotification, WKHapticTypeDirectionUp, WKHapticTypeDirectionDown, WKHapticTypeSuccess,

    WKHapticTypeFailure, WKHapticTypeRetry, WKHapticTypeStart, WKHapticTypeStop, WKHapticTypeClick } WK_AVAILABLE_WATCHOS_ONLY(2.0); WKInterfaceDevice.currentDevice.playHaptic(WKHapticTypeStart)