I will explain few important things about watchkit. It give three offerings to developers what they can do from it as per Apple
1) WatchKit Apps. Your app on Apple Watch contains a full user interface. Users can launch, control, and interact with your app in ways unique to Apple Watch.
2)Glances. You can provide users with timely read-only information that they care about with a Glance — a quick and lightweight view of your app.
3)Actionable Notifications.Actionable notifications built and designed with WatchKit let users take action right from their wrists.
Creating a Watch App
A Watch app is the basis for interacting with your content on Apple Watch. Watch apps are accessible from the home screen and usually provide only a portion of the functionality of their containing iOS app. The purpose of a Watch app is to give the user quick but more in-depth access to app-related data.
How does it work? Let me explain this to you
How you build iPhone app similarly build watch app.
The watchkit app is managed by iPhone OS every app will have watchkit extension that will run on iPhone OS which will be responsible of all the activities from launching to the exit of the watch app. When user exits the watch app watchkit extension is suspened and dealloacted from the memory. It will be resonsible to provide necessary UI to watch app on iwatch.
The Watch app works in tandem with a corresponding WatchKit extension running on the user’s iPhone. The Watch app contains no custom code and is used only to store the storyboards and resource files associated with your user interface. The WatchKit extension is the brains of the operation. It contains the business logic and code you use to manage your content, respond to user interactions, and update your user interface. And because it runs on the user’s iPhone, the WatchKit extension can easily coordinate with your iOS app to gather location updates or perform other long-running tasks.
Customizing the Display of Notifications
Apple Watch works with its paired iPhone to display local and remote notifications. Initially, Apple Watch uses a minimal interface to display incoming notifications. When the user’s movement indicates a desire to see more information, the minimal interface changes to a more detailed interface displaying the contents of the notification. Apps can provide their own customized version of this detailed interface and add custom graphics or arrange the notification data differently than the default interface provided by the system.
Apple Watch supports the interactive notifications that were introduced in iOS 8. Interactive notifications are a way to add buttons to a notification that reflect immediate actions the user can take. For example, an incoming calendar event might include buttons to accept or reject a meeting invitation. When your iOS app registers support for interactive notifications, Apple Watch automatically adds appropriate buttons to both the custom and default notification interfaces. All you need to do is handle the actions selected by the user in your WatchKit extension.
There are guidelines for wachkit apps
Apple watchkit Guidelines
After going much into watch kit I will give you a break and tell you how to refresh your mind when you are busy in doing some thing techincal. Here is Kashmiri Kahwah. From Wiki Wiki Kahwah
After going much into watch kit I will give you a break and tell you how to refresh your mind when you are busy in doing some thing techincal. Here is Kashmiri Kahwah. From Wiki Wiki Kahwah
How to prepare this kashmiri herbal Green tea.
For one cup
Kashmiri Green Tea (Kahva) – 1/4 of tsp
Saffron – 1 pinches
Cardamoms – 1, slightly crushed
Almonds – 3, chopped
Cinnamon Stick – 1/2
Clove – 1/2
Sugar or Honey – 1 tblsp
Method:
1. Boil 1 cup of water along with cinnamon, cardamom and cloves.
2. Add in the Kahva.
3. Let it simmer in low flame for 10 minutes.
4. Meanwhile, dissolve saffron in a teaspoon of water.
5. when you see brown golden color appearing strain the tea and add the saffron liquid together with crushed almonds.
Kashmiri Green Tea (Kahva) – 1/4 of tsp
Saffron – 1 pinches
Cardamoms – 1, slightly crushed
Almonds – 3, chopped
Cinnamon Stick – 1/2
Clove – 1/2
Sugar or Honey – 1 tblsp
Method:
1. Boil 1 cup of water along with cinnamon, cardamom and cloves.
2. Add in the Kahva.
3. Let it simmer in low flame for 10 minutes.
4. Meanwhile, dissolve saffron in a teaspoon of water.
5. when you see brown golden color appearing strain the tea and add the saffron liquid together with crushed almonds.
6. Sweeten with sugar or honey as required to taste.
Sip the tea and come back to the work. Let us finish this iwatch Sample series continued in next post stay tuned.