SlideShare ist ein Scribd-Unternehmen logo
1 von 24
Apple Watch
Development
Introduction to Watch Kit
Mike Bluestein @mikebluestein
Apple Watch
• Requires an iPhone (5c or above)
• Connects to watch via BlueTooth
golfwatchscorecard.com
2 Watch Sizes
• 38mm and 42 mm
• Same aspect ratio
Apple Provided Apps
• Some Apple apps and features work without phone
• These apps have access to sensor data
• Full animation capability
3rd Party Apps
• Run entirely on iPhone
• Installed when installed on paired iPhone
• Watch is for UI presentation layer only
• Limited SDK - Watch Kit
• “Full” SDK later this year
Yes You Can
• Create simple user interface
• Present data from the parent iPhone application
• Present notifications
• Present glaces
• Create image-based animations
No You Can’t
• Run apps without a connect iPhone
• Build watch-only apps
• Capture biometric sensor data
• Capture motion data
• Create timing based animations
App Structure
• Parent iPhone App
• Watch Extension
• Watch App
• Shared Code
UI Navigation
• Two types of UI navigation
• Page-based
• Hierarchical
• Cannot mix them (unless using a modal controller)
Layout
• Groups
• Easy to use
• Far less complex than auto-layout
Controls
• New set of UI controls
• Designed specifically for Apple
Watch
• Easy to use
• Not as full-featured as UIKit
Menus
• Open with force touch gesture
• Controls for menu and menu items
• Handle selection in WKInterfaceController
Watch App
• Contains the user interface and static resources
• Storyboards are required
• No code runs on the watch
Watch Extension
• Runs on the phone
• Has its own lifecycle
• Handles user interactions raised from watch app
• Updates user interface on watch remotely
• Performs shorter running tasks
• Access shared data
iPhone App
• Parent app to the watch app
• Performs longer running tasks
• Access shared data
• Does not share security
• Separate process from watch extension
App Groups
• Share data between iPhone and Watch Extension
• Can share files, settings, database
• Requires shared group entitlement
Communication
• App groups
• OpenParentApplication
• HandleWatchKitExtensionRequest
• Darwin notifications
WormHoleSharp
• Bridge between iOS app and
Watch Extension
• Pass data or commands
• github.com/Clancey/WormHole
Sharp
I’m being
controlled
from Apple
Watch!
Images
• SetImage - works with UIImage
• SetImageData - works directly with bitmap data
• Both send data from iPhone to Apple Watch
• SetImageNamed - sends only name to watch
• Image is loaded from bundle or cache
• Used to create animation
• 20 MB cache with simple cache API
Notifications
• Local or remote notifications
from iPhone
• Short-look - initial display of
notification to user
• Long-look - displayed after
user looks at short look for a
few seconds
• Long-look is scrollable and can
have action buttons
Glances
• Quick access to brief, relevant information
• Swipe up from watch face to access
• Not interactive
• One glance controller per app
• Tap glance to open watch app
App Store Requirements
• No alpha in images
• Use 42 mm for screenshots
• No mention of watch in iPhone app images
• Other?
Demo
Thanks!
Mike Bluestein
@mikebluestein
mike.bluestein@thinkaheadsoftware.com

Weitere ähnliche Inhalte

Was ist angesagt?

Why Apple Watch Matters
Why Apple Watch MattersWhy Apple Watch Matters
Why Apple Watch MattersDoug Robinson
 
Webinar: Impact of iOS 8 on App Marketers and App Developers
Webinar: Impact of iOS 8 on App Marketers and App DevelopersWebinar: Impact of iOS 8 on App Marketers and App Developers
Webinar: Impact of iOS 8 on App Marketers and App DevelopersJayneel Patel
 
Apple Watch and WatchKit - A Technical Overview
Apple Watch and WatchKit - A Technical OverviewApple Watch and WatchKit - A Technical Overview
Apple Watch and WatchKit - A Technical OverviewSammy Sunny
 
JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by ...
JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by ...JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by ...
JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by ...Jahia Solutions Group
 
GaETC: iPads, iPods, and iPhones...Oh MY!
GaETC: iPads, iPods, and iPhones...Oh MY!GaETC: iPads, iPods, and iPhones...Oh MY!
GaETC: iPads, iPods, and iPhones...Oh MY!Monika Davis
 
ibeacons, Privacy & Customer Segmentation - StreetHawk
ibeacons, Privacy & Customer Segmentation - StreetHawkibeacons, Privacy & Customer Segmentation - StreetHawk
ibeacons, Privacy & Customer Segmentation - StreetHawkDavid Jones
 
Apple iWatch Design Predictions
Apple iWatch Design PredictionsApple iWatch Design Predictions
Apple iWatch Design Predictionsdivadwg
 
Wearables, Things & Apps - Mobile Dev + Test '15
Wearables, Things & Apps - Mobile Dev + Test '15Wearables, Things & Apps - Mobile Dev + Test '15
Wearables, Things & Apps - Mobile Dev + Test '15Chris Beauchamp
 
Jailbreaking iOS
Jailbreaking iOSJailbreaking iOS
Jailbreaking iOSMihir Patel
 
Beginners Guide for iPhone & iPad
Beginners Guide for iPhone & iPadBeginners Guide for iPhone & iPad
Beginners Guide for iPhone & iPadJonathan Bacon
 
Wireless Smart Home - An Internet of Things ecosystem
Wireless Smart Home - An Internet of Things ecosystem Wireless Smart Home - An Internet of Things ecosystem
Wireless Smart Home - An Internet of Things ecosystem Ashwini Sudarshana
 
iBeacons for Everyone, From iOS to Android
iBeacons for Everyone, From iOS to AndroidiBeacons for Everyone, From iOS to Android
iBeacons for Everyone, From iOS to AndroidJames Montemagno
 
Workflow automation i phone application for a construction company
Workflow automation i phone application for a construction companyWorkflow automation i phone application for a construction company
Workflow automation i phone application for a construction companyMike Taylor
 
I tunesaccoutsetupandapps
I tunesaccoutsetupandappsI tunesaccoutsetupandapps
I tunesaccoutsetupandappsCWheatley100
 
1356930 634669665657537500
1356930 6346696656575375001356930 634669665657537500
1356930 634669665657537500Muhammad Hasnain
 

Was ist angesagt? (20)

Apple Watch
Apple WatchApple Watch
Apple Watch
 
Why Apple Watch Matters
Why Apple Watch MattersWhy Apple Watch Matters
Why Apple Watch Matters
 
Webinar: Impact of iOS 8 on App Marketers and App Developers
Webinar: Impact of iOS 8 on App Marketers and App DevelopersWebinar: Impact of iOS 8 on App Marketers and App Developers
Webinar: Impact of iOS 8 on App Marketers and App Developers
 
Apple Watch and WatchKit - A Technical Overview
Apple Watch and WatchKit - A Technical OverviewApple Watch and WatchKit - A Technical Overview
Apple Watch and WatchKit - A Technical Overview
 
JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by ...
JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by ...JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by ...
JahiaOne 2015 - Jahia on your Wrist (The Apple Watch Integration example) by ...
 
GaETC: iPads, iPods, and iPhones...Oh MY!
GaETC: iPads, iPods, and iPhones...Oh MY!GaETC: iPads, iPods, and iPhones...Oh MY!
GaETC: iPads, iPods, and iPhones...Oh MY!
 
iOS 5
iOS 5iOS 5
iOS 5
 
ibeacons, Privacy & Customer Segmentation - StreetHawk
ibeacons, Privacy & Customer Segmentation - StreetHawkibeacons, Privacy & Customer Segmentation - StreetHawk
ibeacons, Privacy & Customer Segmentation - StreetHawk
 
Apple iWatch Design Predictions
Apple iWatch Design PredictionsApple iWatch Design Predictions
Apple iWatch Design Predictions
 
Apple Watch
Apple WatchApple Watch
Apple Watch
 
Wearables
WearablesWearables
Wearables
 
Wearables, Things & Apps - Mobile Dev + Test '15
Wearables, Things & Apps - Mobile Dev + Test '15Wearables, Things & Apps - Mobile Dev + Test '15
Wearables, Things & Apps - Mobile Dev + Test '15
 
A seminar report on i cloud
A  seminar report on i cloudA  seminar report on i cloud
A seminar report on i cloud
 
Jailbreaking iOS
Jailbreaking iOSJailbreaking iOS
Jailbreaking iOS
 
Beginners Guide for iPhone & iPad
Beginners Guide for iPhone & iPadBeginners Guide for iPhone & iPad
Beginners Guide for iPhone & iPad
 
Wireless Smart Home - An Internet of Things ecosystem
Wireless Smart Home - An Internet of Things ecosystem Wireless Smart Home - An Internet of Things ecosystem
Wireless Smart Home - An Internet of Things ecosystem
 
iBeacons for Everyone, From iOS to Android
iBeacons for Everyone, From iOS to AndroidiBeacons for Everyone, From iOS to Android
iBeacons for Everyone, From iOS to Android
 
Workflow automation i phone application for a construction company
Workflow automation i phone application for a construction companyWorkflow automation i phone application for a construction company
Workflow automation i phone application for a construction company
 
I tunesaccoutsetupandapps
I tunesaccoutsetupandappsI tunesaccoutsetupandapps
I tunesaccoutsetupandapps
 
1356930 634669665657537500
1356930 6346696656575375001356930 634669665657537500
1356930 634669665657537500
 

Ähnlich wie Apple Watch Intro

Apple Watch and Xamarin (NoVA Mobile C# Dev Group 4/8/15)
Apple Watch and Xamarin (NoVA Mobile C# Dev Group 4/8/15)Apple Watch and Xamarin (NoVA Mobile C# Dev Group 4/8/15)
Apple Watch and Xamarin (NoVA Mobile C# Dev Group 4/8/15)Ed Snider
 
Jacky Wang - KKBOX Apple Watch App
Jacky Wang - KKBOX Apple Watch App Jacky Wang - KKBOX Apple Watch App
Jacky Wang - KKBOX Apple Watch App Jacky Wang
 
Developing for Wearables with Xamarin
Developing for Wearables with XamarinDeveloping for Wearables with Xamarin
Developing for Wearables with XamarinGert Cominotto
 
Android Application Development Using Java
Android Application Development Using JavaAndroid Application Development Using Java
Android Application Development Using Javaamaankhan
 
Mobile Devices
Mobile DevicesMobile Devices
Mobile DevicesYnon Perek
 
Android Mobile App Development basics PPT
Android Mobile App Development basics PPTAndroid Mobile App Development basics PPT
Android Mobile App Development basics PPTnithya697634
 
Hacking and Securing iOS Apps : Part 1
Hacking and Securing iOS Apps : Part 1Hacking and Securing iOS Apps : Part 1
Hacking and Securing iOS Apps : Part 1Subhransu Behera
 
DF14: Drive Salesforce User Productivity with the Pebble SmartWatch
DF14: Drive Salesforce User Productivity with the Pebble SmartWatchDF14: Drive Salesforce User Productivity with the Pebble SmartWatch
DF14: Drive Salesforce User Productivity with the Pebble SmartWatchjayvinarora
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application DevelopmentAzfar Siddiqui
 
Google IO 2017 Recap
Google IO 2017 RecapGoogle IO 2017 Recap
Google IO 2017 RecapVishal Nayak
 
Io t technologies
Io t technologies Io t technologies
Io t technologies Umesh Bhat
 
Xamarin.iOS introduction
Xamarin.iOS introductionXamarin.iOS introduction
Xamarin.iOS introductionGuido Magrin
 

Ähnlich wie Apple Watch Intro (20)

Apple Watch and Xamarin (NoVA Mobile C# Dev Group 4/8/15)
Apple Watch and Xamarin (NoVA Mobile C# Dev Group 4/8/15)Apple Watch and Xamarin (NoVA Mobile C# Dev Group 4/8/15)
Apple Watch and Xamarin (NoVA Mobile C# Dev Group 4/8/15)
 
Jacky Wang - KKBOX Apple Watch App
Jacky Wang - KKBOX Apple Watch App Jacky Wang - KKBOX Apple Watch App
Jacky Wang - KKBOX Apple Watch App
 
WatchOS Architecture
WatchOS ArchitectureWatchOS Architecture
WatchOS Architecture
 
watch_kit_v_1.0
watch_kit_v_1.0watch_kit_v_1.0
watch_kit_v_1.0
 
Developing for Wearables with Xamarin
Developing for Wearables with XamarinDeveloping for Wearables with Xamarin
Developing for Wearables with Xamarin
 
Android Application Development Using Java
Android Application Development Using JavaAndroid Application Development Using Java
Android Application Development Using Java
 
Mobile Devices
Mobile DevicesMobile Devices
Mobile Devices
 
Google android os
Google android osGoogle android os
Google android os
 
Lick my Lollipop
Lick my LollipopLick my Lollipop
Lick my Lollipop
 
Android Mobile App Development basics PPT
Android Mobile App Development basics PPTAndroid Mobile App Development basics PPT
Android Mobile App Development basics PPT
 
Revue des annonces WWDC2015
Revue des annonces WWDC2015Revue des annonces WWDC2015
Revue des annonces WWDC2015
 
Hacking and Securing iOS Apps : Part 1
Hacking and Securing iOS Apps : Part 1Hacking and Securing iOS Apps : Part 1
Hacking and Securing iOS Apps : Part 1
 
DF14: Drive Salesforce User Productivity with the Pebble SmartWatch
DF14: Drive Salesforce User Productivity with the Pebble SmartWatchDF14: Drive Salesforce User Productivity with the Pebble SmartWatch
DF14: Drive Salesforce User Productivity with the Pebble SmartWatch
 
Android Application Development
Android Application DevelopmentAndroid Application Development
Android Application Development
 
Google IO 2017 Recap
Google IO 2017 RecapGoogle IO 2017 Recap
Google IO 2017 Recap
 
AppleWatch_Presentation
AppleWatch_PresentationAppleWatch_Presentation
AppleWatch_Presentation
 
Google android os
Google android osGoogle android os
Google android os
 
Io t technologies
Io t technologies Io t technologies
Io t technologies
 
Android overview
Android overviewAndroid overview
Android overview
 
Xamarin.iOS introduction
Xamarin.iOS introductionXamarin.iOS introduction
Xamarin.iOS introduction
 

Kürzlich hochgeladen

SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?Alexandre Beguel
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...Bert Jan Schrijver
 
Strategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsStrategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsJean Silva
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsChristian Birchler
 
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonLeveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonApplitools
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsSafe Software
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorTier1 app
 
2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shardsChristopher Curtin
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxRTS corp
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identityteam-WIBU
 
Large Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLarge Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLionel Briand
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdfAndrey Devyatkin
 
Patterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencePatterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencessuser9e7c64
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldRoberto Pérez Alcolea
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfDrew Moseley
 
eSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolseSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolsosttopstonverter
 
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jGraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jNeo4j
 
OpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full Recording
OpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full RecordingOpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full Recording
OpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full RecordingShane Coughlan
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptxVinzoCenzo
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Rob Geurden
 

Kürzlich hochgeladen (20)

SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?SAM Training Session - How to use EXCEL ?
SAM Training Session - How to use EXCEL ?
 
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
JavaLand 2024 - Going serverless with Quarkus GraalVM native images and AWS L...
 
Strategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero resultsStrategies for using alternative queries to mitigate zero results
Strategies for using alternative queries to mitigate zero results
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
 
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + KobitonLeveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
Leveraging AI for Mobile App Testing on Real Devices | Applitools + Kobiton
 
Powering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data StreamsPowering Real-Time Decisions with Continuous Data Streams
Powering Real-Time Decisions with Continuous Data Streams
 
Effectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryErrorEffectively Troubleshoot 9 Types of OutOfMemoryError
Effectively Troubleshoot 9 Types of OutOfMemoryError
 
2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards2024 DevNexus Patterns for Resiliency: Shuffle shards
2024 DevNexus Patterns for Resiliency: Shuffle shards
 
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptxThe Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
The Role of IoT and Sensor Technology in Cargo Cloud Solutions.pptx
 
Post Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on IdentityPost Quantum Cryptography – The Impact on Identity
Post Quantum Cryptography – The Impact on Identity
 
Large Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and RepairLarge Language Models for Test Case Evolution and Repair
Large Language Models for Test Case Evolution and Repair
 
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
2024-04-09 - From Complexity to Clarity - AWS Summit AMS.pdf
 
Patterns for automating API delivery. API conference
Patterns for automating API delivery. API conferencePatterns for automating API delivery. API conference
Patterns for automating API delivery. API conference
 
Keeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository worldKeeping your build tool updated in a multi repository world
Keeping your build tool updated in a multi repository world
 
Comparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdfComparing Linux OS Image Update Models - EOSS 2024.pdf
Comparing Linux OS Image Update Models - EOSS 2024.pdf
 
eSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration toolseSoftTools IMAP Backup Software and migration tools
eSoftTools IMAP Backup Software and migration tools
 
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4jGraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
GraphSummit Madrid - Product Vision and Roadmap - Luis Salvador Neo4j
 
OpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full Recording
OpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full RecordingOpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full Recording
OpenChain Education Work Group Monthly Meeting - 2024-04-10 - Full Recording
 
Osi security architecture in network.pptx
Osi security architecture in network.pptxOsi security architecture in network.pptx
Osi security architecture in network.pptx
 
Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...Simplifying Microservices & Apps - The art of effortless development - Meetup...
Simplifying Microservices & Apps - The art of effortless development - Meetup...
 

Apple Watch Intro

  • 1. Apple Watch Development Introduction to Watch Kit Mike Bluestein @mikebluestein
  • 2. Apple Watch • Requires an iPhone (5c or above) • Connects to watch via BlueTooth golfwatchscorecard.com
  • 3. 2 Watch Sizes • 38mm and 42 mm • Same aspect ratio
  • 4. Apple Provided Apps • Some Apple apps and features work without phone • These apps have access to sensor data • Full animation capability
  • 5. 3rd Party Apps • Run entirely on iPhone • Installed when installed on paired iPhone • Watch is for UI presentation layer only • Limited SDK - Watch Kit • “Full” SDK later this year
  • 6. Yes You Can • Create simple user interface • Present data from the parent iPhone application • Present notifications • Present glaces • Create image-based animations
  • 7. No You Can’t • Run apps without a connect iPhone • Build watch-only apps • Capture biometric sensor data • Capture motion data • Create timing based animations
  • 8. App Structure • Parent iPhone App • Watch Extension • Watch App • Shared Code
  • 9. UI Navigation • Two types of UI navigation • Page-based • Hierarchical • Cannot mix them (unless using a modal controller)
  • 10. Layout • Groups • Easy to use • Far less complex than auto-layout
  • 11. Controls • New set of UI controls • Designed specifically for Apple Watch • Easy to use • Not as full-featured as UIKit
  • 12. Menus • Open with force touch gesture • Controls for menu and menu items • Handle selection in WKInterfaceController
  • 13. Watch App • Contains the user interface and static resources • Storyboards are required • No code runs on the watch
  • 14. Watch Extension • Runs on the phone • Has its own lifecycle • Handles user interactions raised from watch app • Updates user interface on watch remotely • Performs shorter running tasks • Access shared data
  • 15. iPhone App • Parent app to the watch app • Performs longer running tasks • Access shared data • Does not share security • Separate process from watch extension
  • 16. App Groups • Share data between iPhone and Watch Extension • Can share files, settings, database • Requires shared group entitlement
  • 17. Communication • App groups • OpenParentApplication • HandleWatchKitExtensionRequest • Darwin notifications
  • 18. WormHoleSharp • Bridge between iOS app and Watch Extension • Pass data or commands • github.com/Clancey/WormHole Sharp I’m being controlled from Apple Watch!
  • 19. Images • SetImage - works with UIImage • SetImageData - works directly with bitmap data • Both send data from iPhone to Apple Watch • SetImageNamed - sends only name to watch • Image is loaded from bundle or cache • Used to create animation • 20 MB cache with simple cache API
  • 20. Notifications • Local or remote notifications from iPhone • Short-look - initial display of notification to user • Long-look - displayed after user looks at short look for a few seconds • Long-look is scrollable and can have action buttons
  • 21. Glances • Quick access to brief, relevant information • Swipe up from watch face to access • Not interactive • One glance controller per app • Tap glance to open watch app
  • 22. App Store Requirements • No alpha in images • Use 42 mm for screenshots • No mention of watch in iPhone app images • Other?
  • 23. Demo