WatchKit

Last updated

WatchKit is a framework provided by Apple to develop applications for the Apple Watch. The WatchKit framework is designed for the Swift programming language and also the Objective-C programming language and must be compiled in Xcode, similar to iOS applications. [1]

Contents

History

WatchKit was first released in 2014, one year before the release of the Apple Watch. [2] It was bundled in with the iOS 8.2 beta SDK. [3] In 2015, Apple set up WatchKit labs in several different cities to allow for in-person development of Apple Watch applications before the product's official launch. [4]

Functionality

WatchKit provides classes allows for development of applications on the Apple Watch. WatchKit also enables iOS applications to send notifications and "Glances," which are persistent notifications that are created using predefined templates made by Apple. [5] The framework is designed to be used with either Swift or Objective-C, and must be compiled in Xcode. While it is designed for the Apple Watch, the watch itself only renders the user interface, and an iPhone linked with the watch renders everything else. It also allows for Handoff support with the linked iPhone. [6]

Classes

WatchKit provides some classes for general purposes, as representing controllers, interfaces, and alert actions. [7]

Also provides support for file management, through the following classes:

And a set of classes that inherit from WKInterfaceObject and represents visual UI elements.

Protocols

WatchKit provides two protocols: WKExtensionDelegate and WKImageAnimatable. WKExtensionDelegate is intended to manage the behavior of the WatchKit extension and WKImageAnimatable controls the playback of animated images.

Related Research Articles

Cocoa is Apple's native object-oriented application programming interface (API) for its desktop operating system macOS.

<span class="mw-page-title-main">GNUstep</span> Open source widget toolkit and application development tools

GNUstep is a free software implementation of the Cocoa Objective-C frameworks, widget toolkit, and application development tools for Unix-like operating systems and Microsoft Windows. It is part of the GNU Project.

<span class="mw-page-title-main">WebObjects</span> Java web application server and framework originally developed by NeXT Software

WebObjects is a discontinued Java web application server and a server-based web application framework originally developed by NeXT Software, Inc.

<span class="mw-page-title-main">Xcode</span> IDE including tools for developing software for Apple platforms

Xcode is Apple's integrated development environment (IDE) for macOS, used to develop software for macOS, iOS, iPadOS, watchOS, tvOS, and visionOS. It was initially released in late 2003; the latest stable release is version 15, released on September 18, 2023, and is available free of charge via the Mac App Store and the Apple Developer website. Registered developers can also download preview releases and prior versions of the suite through the Apple Developer website. Xcode includes command-line tools that enable UNIX-style development via the Terminal app in macOS. They can also be downloaded and installed without the GUI.

<span class="mw-page-title-main">AppKit</span> Graphical user interface toolkit

AppKit is a graphical user interface toolkit. It initially served as the UI framework for NeXTSTEP. Along with Foundation and Display PostScript, it became one of the core parts of the OpenStep specification of APIs. Later, AppKit and Foundation became part of Cocoa, the Objective-C API framework of macOS. GNUstep, GNU's implementation of the OpenStep/Cocoa API, also contains an implementation of the AppKit API.

Core Data is an object graph and persistence framework provided by Apple in the macOS and iOS operating systems. It was introduced in Mac OS X 10.4 Tiger and iOS with iPhone SDK 3.0. It allows data organized by the relational entity–attribute model to be serialized into XML, binary, or SQLite stores. The data can be manipulated using higher level objects representing entities and their relationships. Core Data manages the serialized version, providing object lifecycle and object graph management, including persistence. Core Data interfaces directly with SQLite, insulating the developer from the underlying SQL.

The Apple Developer Tools are a suite of software tools from Apple to aid in making software dynamic titles for the macOS and iOS platforms. The developer tools were formerly included on macOS install media, but are now exclusively distributed over the Internet. As of macOS 10.12, Xcode is available as a free download from the Mac App Store.

<span class="mw-page-title-main">Dashcode</span>

Dashcode was a software application created by Apple Inc. that was included with Mac OS X Leopard and facilitates the development of widgets for Dashboard. It was first included on new MacBooks shipping around the time of May 24, 2006, as part of the Xcode developer tools.

iOS Mobile operating system by Apple

iOS is a mobile operating system developed by Apple exclusively for its smartphones. It was unveiled in January of 2007 for the first-generation iPhone, launched in June 2007.

Cocoa Touch is the application development environment for building software programs to run on iOS for the iPhone and iPod Touch, iPadOS for the iPad, watchOS for the Apple Watch, and tvOS for the Apple TV, from Apple Inc.

iOS SDK Software development kit for iOS

The iOS SDK, formerly the iPhone SDK, is a software development kit (SDK) developed by Apple Inc. The kit allows for the development of mobile apps on Apple's iOS and iPadOS operating systems.

A mobile development framework is a software framework that is designed to support mobile app development. It is a software library that provides a fundamental structure to support the development of applications for a specific environment.

<span class="mw-page-title-main">TestFlight</span> iOS app developer tool

TestFlight is an online service for over-the-air installation and testing of mobile applications, currently owned by Apple Inc. and only offered to developers within the iOS Developer Program. Developers sign up with the service to distribute applications to internal or external beta testers, who can subsequently send feedback about the application to developers. The TestFlight SDK additionally allows developers to receive remote logs, crash reports and tester feedback.

tvOS Operating system for the Apple TV

tvOS is an operating system developed by Apple Inc. for the Apple TV, a digital media player. In the first-generation Apple TV, Apple TV Software was based on Mac OS X. Starting with the second generation, the software is based on the iOS operating system and has many similar frameworks, technologies, and concepts.

macOS Sierra Thirteenth major release of macOS

macOS Sierra is the thirteenth major release of macOS, Apple Inc.'s desktop and server operating system for Macintosh computers. The name "macOS" stems from the intention to unify the operating system's name with that of iOS, watchOS and tvOS. Sierra is named after the Sierra Nevada mountain range in California and Nevada. Its major new features concern Continuity, iCloud, and windowing, as well as support for Apple Pay and Siri.

iOS 13 2019 mobile operating system

iOS 13 is the thirteenth major release of the iOS mobile operating system developed by Apple Inc. for the iPhone, iPod Touch and HomePod. The successor to iOS 12, it was announced at the company's Worldwide Developers Conference (WWDC) on June 3, 2019, and released on September 19, 2019. It was succeeded by iOS 14, released on September 16, 2020.

iOS 15 2021 mobile operating system

iOS 15 is the fifteenth major release of the iOS mobile operating system developed by Apple for its iPhone and iPod Touch lines of products. It was announced at the company's Worldwide Developers Conference on June 7, 2021, as the successor to iOS 14 and released to the public on September 20, 2021.

iOS 16 2022 iphone/mobile operating system

iOS 16 is the sixteenth major release of Apple's iOS mobile operating system for the iPhone. It is the successor of iOS 15, and was announced at the company's Worldwide Developers Conference (WWDC) on June 6, 2022, alongside iPadOS 16, and released on September 12, 2022. It was succeeded by iOS 17 on September 18, 2023.

SwiftUI is a declarative user interface framework for building user interfaces for iOS, iPadOS, watchOS, tvOS, visionOS and macOS, developed by Apple Inc. for the Swift programming language.

visionOS Mixed Reality operating system made by Apple

visionOS is a mixed reality operating system derived primarily from iPadOS core frameworks, and MR-specific frameworks for foveated rendering and real-time interaction. It was developed by Apple Inc. exclusively for its Apple Vision Pro mixed reality headset. It was unveiled on June 5, 2023, at Apple's WWDC23 event alongside the reveal of the Apple Vision Pro. The software released on February 2, 2024, shipping with the Apple Vision Pro.

References

  1. Azarpour, Soheil (2015-02-24). "WatchKit FAQ". kodeco.com. Retrieved 2024-02-13.
  2. Cunningham, Andrew (2014-11-18). "Apple releases WatchKit developer tools alongside first iOS 8.2 beta". Ars Technica. Retrieved 2024-02-13.
  3. Kingsley-Hughes, Adrian (2014-11-18). "Apple makes WatchKit software tools available to developers". ZDNET. Retrieved 2024-02-13.
  4. Warren, Tom (2015-03-11). "Apple's taping over developer iPhone cameras in secret watch labs". The Verge. Retrieved 2024-02-13.
  5. Mayo, Benjamin (2014-11-18). "Apple WatchKit third-party apps require a connected iPhone to function, 'fully native' apps coming later in 2015". 9to5Mac.
  6. Bonnington, Christina. "With New Dev Kit, Apple Gives Us a Glimpse of How Its Watch Will Work". Wired. ISSN   1059-1028 . Retrieved 2024-02-13.
  7. Manning, Jon; Buttfield-Addison, Paris (2016-05-30). Swift Development for the Apple Watch: An Intro to the WatchKit Framework, Glances, and Notifications. "O'Reilly Media, Inc.". ISBN   978-1-4919-2529-4.