Log In
Or create an account ->
Imperial Library
Home
About
News
Upload
Forum
Help
Login/SignUp
Index
Prerequisites
What You’ll Need
About the Sample Code a.k.a Why not Swift
Getting Sample Code
Installing Git and Working with Github
Contacting the Authors
Acknowledgements
About the Authors
Chapter Overview
Introduction
A Brief History of the Watch
Apple Watch
WatchKit
Types of Watch Apps
Summary
Going Further
Chapter Overview
The Simulator
Building for the Simulator
Building for the Device
Summary
Going Further
Chapter Overview
Icon Design
Designing Image Assets
Using the Image Cache
Adding Cached Images
Removing Cached Images
Getting Cached Image Size
Color
Typography
Summary
Chapter Overview
Group
Table
(Untitled)
Picker
Map
Menus
Summary
Going Further
Chapter Overview
Introduction to Video Playback in watchOS
Encoding
Playing Audio and Video with WKInterfaceMovie
Presenting the Media Controller Programmatically
Recording Audio with Built-in Microphone
Audio Playback
Haptic Feedback and Sounds
Summary
Going Further
Chapter Overview
Setting up a WCSession connection
Understanding the Session State
WCSession Delegate Methods
Watch Connectivity Framework Communication Categories
(Untitled)
Background Transfers
(Untitled)
Interactive Messaging
Implementing Background Transfers
Background Transfer: App Context
Background Transfer: User Info Dictionary
Background Transfer: File
Implementing Interactive Messaging
Interactive Messaging with a Dictionary
Interactive Messaging with Data
NSURLSession
Summary
Going Further
Chapter Overview
How complications work
Design considerations for complications
Modular
Modular Large
(Untitled)
Modular Small
Utilitarian
Utilitarian Large
Utilitarian Small
Circular
Configuring a project for complications
Implementing a complication
Supplying Timeline Information
Supplying Timeline Entries
Responding to Scheduled Updates
Providing Placeholder Templates
Determining Privacy Behavior
About Text and Image Providers
Handling updates to data
Summary
Going Further
Chapter Overview
Accessing Device Sensors
Accessing Heart Rate Data
HealthKit Submission Requirements
Summary
Chapter Overview
Sizing Methods
Manually Changing Overall Width and Height
Setting Relative Width and Height to Container
Animating Changes to WKInterfaceObjects
Animation Tips
Animating Changes to WKInterfaceTable
Summary
Going Further
Chapter Overview
Alerts and Action Sheets
Implementing an Alert
Summary
Going Further
Chapter Overview
About User Input on Apple Watch
Capturing User Input
Internationalization
Summary
Going Further
Chapter Overview
How Handoff Works
Registering Activities
When implementing Handoff functionality, the first step is to register the app activities inside of Info.plist. These registered activities will be used by iOS and macOS to determine if the app can resume activities on the secondary device.
Broadcasting App-based Activities
Because the app should no longer offer Handoff when the user has left the detail controller, implement the willDisappear method and call invalidateUserActivity.
Handling and Resuming Activities
Broadcasting Web-based Activities
Summary
Going Further
Chapter Overview
About the Dock
Making Apps Dockable
Most Important Elements First
Actionable Items
Responsiveness
Making New Snapshots
Summary
Going Further
Chapter Overview
iOS Provisioning
Build Numbers
Generating an Archive Build
Create and upload an IPA to iTunes Connect
iTunes Connect Required Assets
Automatically Incrementing Build Numbers in Xcode
Summary
Going Further
Appendix Overview
Xcode Version Required for WatchKit Development
Creating the Sample Project
Writing the Networking Code
Creating the Master-Detail View Controllers
Creating the WatchKit App Target
Hello, WatchKit
Summary
← Prev
Back
Next →
← Prev
Back
Next →