WatchKit

WatchKit is a framework provided by Apple in order to develop interfaces for Apple Watch applications.[1] In order to develop using WatchKit, more information and resources are provided by Apple in the WatchKit library.[2] WatchKit contains all the classes that a WatchKit extension uses to develop an application.

## Classes

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

* WKAccessibilityImageRegion
* WKAlertAction
* WKExtension
* WKImage
* WKInterfaceController
* WKUserNotificationInterfaceController
* WKInterfaceDevice
* WKPickerItem

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

* WKAudioFileAsset
* WKAudioFilePlayer
* WKAudioFileQueuePlayer
* WKAudioFilePlayerItem

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

* WKInterfaceButton
* WKInterfaceDate
* WKInterfaceGroup
* WKInterfaceImage
* WKInterfaceLabel
* WKInterfaceMap
* WKInterfaceMovie
* WKInterfacePicker
* WKInterfaceSeparator
* WKInterfaceSlider
* WKInterfaceSwitch
* WKInterfaceTable
* WKInterfaceTimer

## Protocols

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

## References

1. ↑ "WatchKit - Apple Developer". apple.com. https://developer.apple.com/watchkit/.
2. ↑ "WatchKit Programming Guide: Developing for Apple Watch". apple.com. 21 October 2015. https://developer.apple.com/library/watchos/documentation/General/Conceptual/WatchKitProgrammingGuide/index.html#//apple_ref/doc/uid/TP40014969.

0.00

(0 votes)

|

Retrieved from "https://handwiki.org/wiki/index.php?title=Engineering:WatchKit&oldid=892348"