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


This article is issued from Wikipedia - version of the 6/18/2016. The text is available under the Creative Commons Attribution/Share Alike but additional terms may apply for the media files.