WatchKit

WatchKit is a framework provided by Apple to develop interfaces for Apple Watch applications.[1] To develop using WatchKit, Apple provides more information and resources 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


This article is issued from Wikipedia. The text is licensed under Creative Commons - Attribution - Sharealike. Additional terms may apply for the media files.